Performs a search query against a knowledge base to retrieve the most relevant chunks. This endpoint can be used for both production retrieval and test retrieval.
API Key authentication. For all API requests, include your API Key in the Authorization HTTP Header, prefixed with Bearer. Example: Authorization: Bearer {API_KEY}. Strongly recommend storing your API Key on the server-side, not shared or stored on the client-side, to avoid possible API-Key leakage that can lead to serious consequences.
Knowledge base ID.
Search query text.
250Retrieval model configuration. Controls how chunks are searched and ranked when querying this knowledge base.
Retrieval settings for external knowledge bases.
List of attachment IDs to include in the retrieval context.