API ReferenceKnowledge Base
Search Chunks
Vector-similarity search across the organization's knowledge base chunks
Results are returned without similarity-threshold filtering — apply a threshold (and optional reranking) at the application layer based on what precision your use case needs.
Header Parameters
X-API-Key?string|null
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request schema for searching similar chunks.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/knowledge-base/search" \ -H "Content-Type: application/json" \ -d '{ "query": "string" }'{ "chunks": [ { "id": 0, "document_id": 0, "chunk_text": "string", "contextualized_text": "string", "chunk_index": 0, "chunk_metadata": {}, "filename": "string", "document_uuid": "string", "similarity": 0 } ], "query": "string", "total_results": 0}