POST
/
api
/
corpora
/
{corpus_id}
/
query
Use the queryCorpus Tool

Any agents that you deploy should use the built-in queryCorpus tool.


This endpoint should be use for testing.

Authorizations

X-API-Key
string
header
required

API key

Path Parameters

corpus_id
string
required

Body

application/json

A request to query a corpus.

maxResults
integer

The maximum number of results to return.

query
string

The query to run.

Response

200 - application/json
citation
object

A citation for this chunk.

content
string

The content of the retrieved chunk.

score
number

The score of this chunk, with higher scores indicating better matches.