Knowledge
Search knowledge
Search the knowledge base for relevant information
Authorization<token>
API key in the format: Bearer YOUR_API_KEY
In: header
agentIdstring
ID of the agent whose knowledge to search
Format
uuidquerystring
Search query
topK?integer
Number of results to return
Default
5Range
1 <= value <= 10Response Body
application/json
application/json
application/json
curl -X POST "https://api.chorus-ai.co/v1/knowledge/search" \ -H "Content-Type: application/json" \ -d '{ "agentId": "bc309ecf-5f66-4057-93c5-6611cc9cb7b2", "query": "string" }'{
"results": [
{
"content": "string",
"document": "string",
"score": 0
}
]
}{
"error": "string",
"details": [
{}
]
}{
"error": "string",
"details": [
{}
]
}Last updated on