Retrieve Chunks from a Knowledge Base / Test Retrieval
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.
Documentation Index
Fetch the complete documentation index at: https://dify-6c0370d8-release-1-14.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
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.
Path Parameters
Knowledge base ID.
Body
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.