Search through documents with filtering
Search through documents with filtering
Authorizations
Body
Search query string
1
"machine learning concepts"
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
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
Maximum number of results to return
1 <= x <= 100
10
If true, rewrites the query to make it easier to find documents. This increases the latency by about 400ms
false
Optional filters to apply to the search
{
"AND": [
{
"key": "group",
"value": "jira_users",
"negate": false
},
{
"filterType": "numeric",
"key": "timestamp",
"value": "1742745777",
"negate": false,
"numericOperator": ">"
}
]
}
Optional category filters
technology
, science
, business
, health
["technology", "science"]
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
Optional document ID to search within. You can use this to find chunks in a very large document.
255
"doc_xyz789"
End user ID this search is associated with. NOTE: This also acts as a filter for the search.
255
"user_123"
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
If true, rerank the results based on the query. This is helpful if you want to ensure the most relevant results are returned.
false