Search In Knowledge Base
REST API - Knowledge
Search Knowledge Base
Search in knowledge base using vector search
GET
Search In Knowledge Base
Perform semantic search across documents in a knowledge base using vector similarity. Returns the most relevant document chunks based on your query.Documentation Index
Fetch the complete documentation index at: https://docs.xpander.ai/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
Unique identifier of the knowledge base to search (UUID format)
Query Parameters
The search query text to find relevant documents
Number of results to return (default: 5, maximum: 50)
Response
Returns a flat array of search results, each containing:The extracted text content from the matching document
Relevance score (float, higher indicates better match)
Example Request
Example Response
Notes
- Search only returns results from documents with
status: "completed" - Pending or failed documents are excluded from search results
- Empty results indicate no matching content in the knowledge base
- Returns 404 if the knowledge base is not found
Authorizations
API Key for authentication
Path Parameters
Query Parameters
Query to search in the VDB
Should use bubble search to return the result capped
Bubble size (padding + result + margin)
Top K Results

