How It Works
- Text parsing: Your query is broken into searchable terms
- Index lookup: The system finds documents containing those terms
- Ranking: Results are ordered by relevance (term frequency, document length, etc.)
When to Use Keyword Search
Use vector search if users phrase things differently than your docs.
Use hybrid search if you want both exact matching and semantic understanding.
Configuration
Basic Setup
With Reranking
Add a reranker to improve result ordering:Example
keyword_search.py
Next Steps
Hybrid Search
Combine keyword search with vector similarity
Vector Search
Search by semantic meaning