@sqlrooms/ai-rag / QueryOptions
Type Alias: QueryOptions
QueryOptions =
object
Properties
topK?
optionaltopK:number
Number of results to return (default: 5)
database?
optionaldatabase:string
Database to search (defaults to first database)
hybrid?
optionalhybrid:boolean|number
Enable hybrid search combining vector similarity with full-text search (BM25).
- true: Use hybrid search with default settings (k=60)
- false: Use pure vector search only
- number: Use hybrid search with custom k value for RRF Default: true
