Search
Find the passages that match a query.
Base URL https://futuresmart.ai/document-intelligence/api · every request sends x-api-key. Samples read the key from DOCUMENT_INTELLIGENCE_API_KEY. All endpoints
Search a collection
POST
/v1/{knowledge_id}/searchSearch for chunks using semantic or hybrid search.
This endpoint is an improvement on /chunks/search from knowledge_retrieval.py.
Credential Document Intelligence API key (x-api-key)
Path parameters
| Name | Type | Description |
|---|---|---|
knowledge_idrequired | string |
Request body · application/json
| Name | Type | Description |
|---|---|---|
query | string | null | Search query text |
num_chunks | integer | Number of chunks to return |
object_ids | array<string> | null | Hard document scope. Omit or use null for the whole knowledge base; [] returns no chunks. Metadata filters are not supported by this endpoint. |
mode | string | null | Search mode: 'hybrid' or 'non_hybrid' |
Other responses
422Validation Error
Example request body
JSON
{
"num_chunks": 3,
"mode": "hybrid"
}