firehose> #llmops

Semantic Retrieval

Level 3 of Retrieval Maturity Levels: retrieve by meaning rather than exact keyword. Documents are chunked, each chunk is run through an embeddings model that places it in a high-dimensional space where nearness ≈ semantic similarity, and a query is matched against similar chunks (X is similar to X, Y, Z) instead of literal string matches (X = X). A "smart lookup" for feedback then surfaces notes about evaluations and test results, not just the ones containing the word. Tools: Qdrant, Pinecone, Supabase; you can go deep on chunking, embedding, hybrid search, and re-ranking.

The load-bearing corrective is that vector search is not magic. Because it retrieves chunks, it is excellent when you need a pinpoint answer over a lot of text — "what was rule 17 of these 1,000 rules?" pulls the right snippet without reading the whole file — but it fails questions that need the whole document. "Which week had the highest sales?" grabs one plausible chunk and confidently returns a local max while higher values sit in chunks it never pulled; "summarize the March 5th meeting" summarizes five retrieved chunks, not the meeting. When you need full context, don't chunk — have the agent read the whole markdown file. So semantic retrieval is a per-folder choice under Query-Shaped Storage, not a universal upgrade: use it for lookup-over-scale, not for aggregation or completeness.

Claims


Linked from