Skip to main content
Vector search finds content by meaning rather than exact word matches. When you search for “How do I reset my password?”, it finds documents about “changing credentials” even if those exact words don’t appear.

How It Works

  1. Query embedding: Your search query is converted to a vector (list of numbers capturing meaning)
  2. Similarity matching: The system finds stored vectors closest to the query vector
  3. Ranking: Results are ordered by cosine similarity (how close the meanings are)
The embedding model determines how well semantic relationships are captured. General-purpose models like OpenAI’s text-embedding-3-small work well for most content. 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