POST
/
api
/
chunk
/
count
curl --request POST \
  --url https://api.trieve.ai/api/chunk/count \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TR-Dataset: <tr-dataset>' \
  --data '{
  "query": "Some search query",
  "score_threshold": 0.5,
  "search_type": "semantic"
}'
{
  "count": 1
}

Authorizations

Authorization
string
header
required

Headers

TR-Dataset
string
required

The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.

Body

application/json
JSON request payload to count chunks for a search query

The body is of type object.

Response

200
application/json
Number of chunks satisfying the query

The response is of type object.