Query a knowledge base by its id
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The id of the knowledge base to query
Query string
1"What is the capital of France?"
Number of documents to retrieve from the knowledge base before filtering
10
Number of documents to return
3
Per-field filters to apply to the query combined with AND
[
{
"field": "price",
"operation": ">",
"value": 100
},
{
"field": "category",
"operation": "in",
"value": ["product", "service"]
}
]Whether to rerank the results
Parent span id
Successful Response
The id of the document
The key of the document
"paris_123"
The content of the document
"The capital of France is Paris"
The metadata of the document
{ "category": "product", "price": 100 }The score of the document
0.95