Hybrid searcher combining vector similarity and keyword matching.
Provides unified search over both vector embeddings (semantic similarity) and keyword indexes (BM25 term matching). Results are fused using configurable strategies like RRF or weighted scoring.
Perform hybrid search with optional cross-encoder reranking.
Perform hybrid search with optional cross-encoder reranking.
This method first performs hybrid search to get candidate documents, then optionally applies a reranker for improved precision. Reranking uses cross-encoder models that see both query and document together.
Value parameters
filter
Optional metadata filter
queryEmbedding
Query embedding for vector search
queryText
Query text for keyword search and reranking
rerankTopK
Number of candidates to retrieve for reranking (default: 50)