Skip to content

@sqlrooms/ai-rag / QueryOptions

Type Alias: QueryOptions

QueryOptions: object

Type declaration

NameTypeDescription
topK?numberNumber of results to return (default: 5)
database?stringDatabase to search (defaults to first database)
hybrid?boolean | numberEnable 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