Knowledge
Search knowledge
Searches across documents and memories using hybrid retrieval — a vector query and a full-text query per source, fused by reciprocal rank — or by file paths, document IDs, memory store IDs, or tags. At least one of query, tags, document_paths, document_ids, or memory_store_ids must be provided.
post/v1/projects/{project_id}/knowledge/search
Request
- Base URL: https://api.naturali.ai
- URL: https://api.naturali.ai/v1/projects/{project_id}/knowledge/search
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://api.naturali.ai/authorize, token URL https://api.naturali.ai/token, scopes: mcp:access)
Request body
Example request
{
"query": "customer communication preferences",
"min_similarity": 0.5,
"rrf_k": 60,
"recency_half_life_days": 30,
"limit": 10,
"memory_store_ids": [
"mstore_V1StGXR8Z5jdHi6B"
],
"document_paths": [
"/sales/",
"/hr/"
],
"document_ids": [
"doc_V1StGXR8Z5jdHi6B"
],
"tags": {
"team": "finance",
"env": "prod"
},
"metadata": {
"quarter": "Q1",
"revision": {
"gte": 3,
"lt": 11
},
"status": {
"in": [
"draft",
"final"
]
}
}
}Response
Search results
Example response
{
"results": [
{
"source_type": "document",
"document_id": "doc_V1StGXR8Z5jdHi6B",
"document_version": 3,
"chunk_id": "dchunk_V1StGXR8Z5jdHi6B",
"page": 3,
"file_id": "file_V1StGXR8Z5jdHi6B",
"project_id": "proj_V1StGXR8Z5jdHi6B",
"path": "/sales/policies.txt",
"filename": "policies.txt",
"size": 1024,
"title": "Sales Communication Policy",
"metadata": {
"author": "John",
"revision": 2
},
"tags": {
"team": "finance",
"env": "prod"
},
"score": 0.0328,
"signals": {
"vector": 2,
"lexical": 1
},
"similarity_score": 0.82
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.