Overview
Runs semantic search across one or more namespaces. Provide either--query (text) or --query-vector-json (vector array). Prints ranked results as JSON.
- Text query — embedded via Ollama; use with text namespaces. Add
#key:valuemetadata filters or#keywordtext filters at the end of--query - Vector query — use with vector namespaces; array length must match
vector_dimension
Synopsis
Options
Put metadata and keyword filters in
--query using #key:value and #keyword at the end (e.g. --query "product docs #department:engineering"). On Windows PowerShell, escape vector JSON: --query-vector-json '[0.1,0.2,0.3,0.4,0.5]'.Examples
Output
Prints JSON fromPOST /search:
Example output (text search)
Example output (vector search)