v2
latestOpenAPI 3.1.02026-07-2670186350.6 KBknowledge
Query Knowledge Base
Query a knowledge base by its id
post/knowledge/{knowledge_base_id}/query
Path parameters
knowledge_base_idstring uuid required
The id of the knowledge base to query
The id of the knowledge base to query
Request body
Example request
{
"query": "What is the capital of France?",
"prefilter_limit": 10,
"top_k": 3,
"filters": [
{
"field": "price",
"operation": ">",
"value": 100
},
{
"field": "category",
"operation": "in",
"value": [
"product",
"service"
]
}
]
}Response
Successful Response
Example response
[
{
"key": "paris_123",
"content": "The capital of France is Paris",
"metadata": {
"category": "product",
"price": 100
},
"score": 0.95
}
]