Search documents in a knowledge base
POST/v1/collections/:collection_id/search
Run a semantic search across the knowledge base and receive ranked documents. Per-fragment matches are aggregated server-side; only document-level results are returned. Optional datasource_ids or datasource_types filters scope the search to a subset of the collection's datasources; these filters are mutually exclusive. When neither is provided the search spans the entire knowledge base.
Request
Responses
- 200
- 400
- 401
- 404
- 500
Ranked documents (possibly empty)
BadRequest
Response Headers
Unique identifier for the API request, useful for debugging and tracking.
abc123xyz789Unauthorized
Response Headers
Unique identifier for the API request, useful for debugging and tracking.
abc123xyz789The specified resource was not found
Response Headers
Unique identifier for the API request, useful for debugging and tracking.
abc123xyz789Internal Server Error
Response Headers
Unique identifier for the API request, useful for debugging and tracking.
abc123xyz789