curl --request POST \
--url https://cloud.onyx.app/api/query/document-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": "<string>",
"search_type": "keyword",
"retrieval_options": {
"chunks_above": 123,
"chunks_below": 123,
"full_doc": false,
"run_search": "auto",
"real_time": true,
"filters": {
"source_type": [
"ingestion_api"
],
"document_set": [
"<string>"
],
"time_cutoff": "2023-11-07T05:31:56Z",
"tags": [
{
"tag_key": "<string>",
"tag_value": "<string>"
}
]
},
"enable_auto_detect_filters": true,
"offset": 123,
"limit": 123,
"dedupe_docs": false
},
"evaluation_type": "agentic",
"chunks_above": 123,
"chunks_below": 123,
"full_doc": false,
"recency_bias_multiplier": 1,
"rerank_settings": {
"rerank_model_name": "<string>",
"rerank_api_url": "<string>",
"rerank_provider_type": "cohere",
"num_rerank": 123,
"rerank_api_key": "<string>",
"disable_rerank_for_streaming": false
}
}
'