cURL
curl --request POST \ --url https://api.example.com/knowledge-bases/{kb_id}/search
Search a knowledge base with semantic and hybrid retrieval
kb_id
string
{ "query": "How does billing work?", "top_k": 5 }
query
top_k
int
5
{ "results": [ { "content": "Billing is processed monthly on the...", "document_id": "doc_456", "score": 0.92, "metadata": { "filename": "billing-guide.md", "chunk_index": 3 } } ] }