examples

Count the examples that match the filters.

get/api/v1/examples/count

Request

  • Base URL
    https://api.smith.langchain.com
  • URL
    https://api.smith.langchain.com/api/v1/examples/count
  • Auth
    • API key in header X-API-Key
    • or API key in header X-Tenant-Id
    • or HTTP bearer

Query parameters

idstring[] nullable

Only count examples with these IDs.

string date-time
OR
string
metadatastring nullable

JSON object. Only count examples whose metadata contains it.

full_text_containsstring[] nullable

Only count examples whose inputs or outputs contain every one of these terms, ignoring case.

splitsstring[] nullable

Only count examples in any of these splits.

datasetstring uuid nullable

Only count examples in this dataset.

filterstring nullable

Filter expression the examples must match.

Response

Successful Response

integer required

Changes

    • breaking

      the / response's property type changed from object to string for status

    • breaking

      removed the required property // from the response with the status

    • breaking

      removed the required property // from the response with the status

    • breaking

      removed the required property // from the response with the status