Knowledge
Search Knowledge Chunks
Perform semantic search across knowledge sources within a knowledge base to find the most relevant content chunks based on a natural language query. Returns ranked chunks with similarity scores, allowing you to retrieve contextually relevant information for AI applications, chatbots, or information retrieval systems. You can filter results by specific knowledge sources.
post/v2/KnowledgeBases/{kbId}/Search
Request body
Example request
{
"query": "How do I reset my password?",
"top": 5,
"knowledgeIds": [
"know_knowledge_00000000000000000000000000"
]
}Response
OK
Example response
{
"chunks": [
{
"knowledgeId": "know_knowledge_00000000000000000000000000"
}
]
}