Search knowledge base
Search a Knowledge Base and return the most similar chunks, along with their search and rerank scores. Note that all configuration changes made in the API will override the settings in the UI.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier or key of the knowledge base
Body
A search request for chunks in a knowledge base
The query to use to search the knowledge base
1The number of results to return. If not provided, will default to the knowledge base configured top_k.
1 <= x <= 100The threshold to apply to the search. If not provided, will default to the knowledge base configured threshold
0 <= x <= 1The type of search to perform. If not provided, will default to the knowledge base configured retrieval_type
vector_search, keyword_search, hybrid_search The metadata filter to apply to the search. Check the Searching a Knowledge Base for more information.
- Search operator
- and
- or
Additional search options
Override the rerank configuration for this search. If not provided, will use the knowledge base configured rerank settings.
Override the agentic RAG configuration for this search. If not provided, will use the knowledge base configured agentic RAG settings.
Response
Search knowledge base