Skip to main content

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​

Ranked documents (possibly empty)