Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Search query string
1
"machine learning concepts"
Optional category filters
["technology", "science"]
Threshold / sensitivity for chunk selection. 0 is least sensitive (returns most chunks, more results), 1 is most sensitive (returns lesser chunks, accurate results)
0 <= x <= 1
0.5
Optional tags this search should be containerized by. This can be an ID for your user, a project ID, or any other identifier you wish to use to filter documents.
["user_123", "project_123"]
Optional document ID to search within. You can use this to find chunks in a very large document.
255
"doc_xyz789"
Threshold / sensitivity for document selection. 0 is least sensitive (returns most documents, more results), 1 is most sensitive (returns lesser documents, accurate results)
0 <= x <= 1
0.5
Optional filters to apply to the search
{
"AND": [
{
"key": "group",
"negate": false,
"value": "jira_users"
},
{
"filterType": "numeric",
"key": "timestamp",
"negate": false,
"numericOperator": ">",
"value": "1742745777"
}
]
}
If true, include full document in the response. This is helpful if you want a chatbot to know the full context of the document.
false
If true, include document summary in the response. This is helpful if you want a chatbot to know the full context of the document.
false
Maximum number of results to return
1 <= x <= 100
10
If true, only return matching chunks without context. Normally, we send the previous and next chunk to provide more context for LLMs. If you only want the matching chunk, set this to true.
false
If true, rerank the results based on the query. This is helpful if you want to ensure the most relevant results are returned.
false
If true, rewrites the query to make it easier to find documents. This increases the latency by about 400ms
false