Chunk
Generate suggested queries
Changed onThis endpoint will generate 3 suggested queries based off a hybrid search using RAG with the query provided in the request body and return them as a JSON object.
post/api/chunk/suggestions
Request
- Base URLhttps://api.trieve.ai
- URLhttps://api.trieve.ai/api/chunk/suggestions
- AuthAPI key in header Authorization
Headers
TR-Datasetstring uuid 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.
Request body
Example request
{
"filters": {
"must": [
{
"field": "tag_set",
"match_all": [
"A",
"B"
]
},
{
"field": "num_value",
"range": {
"gte": 10,
"lte": 25
}
}
]
}
}Response
A JSON object containing a list of alternative suggested queries
Changes
- info
added the new optional request property
- info
- breaking
the
/response's property type changed fromobjecttostringfor status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status
- breaking