Skip to main content
POST

Search Collection

Search within a collection using knowledge search with support for different search types including fulltext, semantic, and hybrid search.

Headers

string
Bearer token for authentication
string
API key for authentication (alternative to Authorization header)
string
Optional. Derived from API Key, but can be specified if you have access to multiple workspaces

Request Body

string
required
Search query string
string
required
ID of the collection to search in
string
default:"hybrid"
Type of search to perform (vector, keyword, hybrid)
integer
default:"10"
Maximum number of results to return (1-100)
object
Additional filters to apply to the search

Response

array
Array of search results
integer
Total number of results found
string
Original search query
string
Type of search performed
string
Collection that was searched
number
Search execution time in milliseconds
Search types:
  • vector: Semantic similarity search using embeddings
  • keyword: Traditional keyword-based search
  • hybrid: Combination of vector and keyword search (recommended)