Stage 2 · Teens · Working with LLMs
Search in Production: Hybrid Retrieval
When meaning-only search fails, and why production systems mix vectors with keywords.
You already have the geometry: passage embeddings put related meaning nearby, which is why "car servicing" can match "automobile maintenance intervals." This lesson is the production half — when that geometry is the wrong tool, and what to add.
The embeddings in your vector database are almost never the LLM's internal token vectors. They come from a dedicated embedding model trained so that queries and relevant passages land close together. That model can go stale relative to your domain (legal jargon, internal codenames, SKUs) even if the chat model is excellent.