Endpoints
Datastore - Query
POST
/
datastores
/
{id}
/
query
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
id
string
requiredID of the datastore
Body
application/json
query
string
requiredQuery to ask your agent.
topK
number
The maximum number of results to retrieve.
filters
object
Response
200 - application/json
text
string
Text of the document fragment.
score
number
Similarity score of the document fragment.
source
string
Source url of the document fragment.
datasource_id
string
ID of the datasource the document fragment belongs to.
datasource_name
string
Name of the datasource the document fragment belongs to.
Was this page helpful?