How It Works
- Query embedding: Your search query is converted to a vector (list of numbers capturing meaning)
- Similarity matching: The system finds stored vectors closest to the query vector
- Ranking: Results are ordered by cosine similarity (how close the meanings are)
text-embedding-3-small work well for most content.
When to Use Vector Search
Use hybrid search if you also need exact term matching (product names, error codes).
Use keyword search if you need precise text matching only.
Configuration
Basic Setup
With Reranking
Add a reranker to improve result ordering:Example
vector_search.py
Next Steps
Hybrid Search
Combine vector search with keyword matching
Embedders
Choose the right embedding model