POST
/
datastores
/
{id}
/
query

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

ID of the datastore

Body

application/json
query
string
required

Query to ask your Datastore.

topK
number

The maximum number of results to retrieve.

filters
object

Response

200 - application/json
text
string

Content of the chunk.

score
number

Similarity score of the chunk with the query.

source
string

URL or identifier of the original source of the chunk.

datasource_id
string

ID of the datasource to which the chunk belongs.

datasource_name
string

Name of the datasource to which the chunk belongs.

custom_id
string | null

Custom ID associated with the chunk (if any).

tags
string[]

Tags associated with the chunk (if any).