v2
latestOpenAPI 3.1.02026-07-313981108.2 KBKnowledge Bases
Query Knowledge Base
Send a question to the specified knowledge base and receive a response. Optionally pass a conversation history for the assistant to take into consideration while generating responses.
post/kb/v1/knowledge-bases/{id}/query
Path parameters
idstring required
The ID of the knowledge base to train.
Request body
Example request
{
"messages": [
{
"role": "user",
"content": "What are the services offered?"
}
],
"temperature": 0.1,
"seed": 42
}Response
Successful response
Example response
{
"response": "string"
}