iai collections search hybrid
Run a multi-lane hybrid search (RRF) from a file
Synopsis
Run a hybrid search from a YAML/JSON file. The command dispatches to the hybrid path automatically (it sets "mode":"hybrid" for you).
The body holds a "queries" array and an optional "fusion" config. Each lane supplies exactly one of: query (dense, embedded server-side), vector (pre-computed dense), sparse_vector, or full_text (keyword search; requires full-text enabled on the collection). Note: "using" selects the vector slot — it does NOT select the full-text lane; set "full_text" for that. Lanes are fused with RRF.
Schema: { "queries": [ {"query": "text", "using": "default", "candidate_limit": 50}, {"full_text": "keyword query", "candidate_limit": 30} ], "fusion": {"method": "rrf", "k": 60}, "limit": 10 }
iai collections search hybrid <collection> [flags]Examples
iai collections search hybrid docs -d my-db --file hybrid.jsonOptions
-d, --database string Database that holds the collection (required)
--file string Path to a YAML/JSON hybrid-search file
-h, --help help for hybrid
--json Output raw API response as JSON
-o, --organization string Organization name
-p, --project string Project name
--yaml Output raw API response as YAMLOptions inherited from parent commands
SEE ALSO
iai collections search - Search a collection (single-lane vector search)
Last updated
Was this helpful?

