v2

latestOpenAPI 3.0.1Apache 2.0raw.githubusercontent.com2026-05-07132063.9 KB
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

querystring required

The query to search the knowledge source.

topinteger required

The top K results to return.

knowledgeIdsKnowledgeId[]

The list of knowledge IDs to search.

Example request

{
  "query": "How do I reset my password?",
  "top": 5,
  "knowledgeIds": [
    "know_knowledge_00000000000000000000000000"
  ]
}

Response

OK

Example response

{
  "chunks": [
    {
      "knowledgeId": "know_knowledge_00000000000000000000000000"
    }
  ]
}