Semantic Search
Retrieving data based on meaning rather than keywords. (Ref: https://en.wikipedia.org/wiki/Semantic_search)
Lesson previews
The assistant retrieves related articles, but not the right ones. Which setup issues explain why the assistant keeps retrieving billing articles for refund disputes? Mixed-topic chunks Correct. If one embedded chunk covers several issues, similarity search can retrieve the chunk for the wrong reason and pollute the LLM context. Archived policy still searchable Correct. Embeddings do not know a document is obsolete unless metadata filtering or index hygiene prevents it from being retrieved. Ambiguous acronyms left unexplained Correct. Similar-looking shorthand can cluster incorrectly unless chunks include enough disambiguating context. Only one test query Correct. Retrieval quality needs evaluation across realistic…
5 minEmbeddings Are Similarity, Not TruthReframe: embeddings are a map of learned closeness, not a judge. The Mechanism An embedding model turns words, sentences, or passages into vectors. Similar texts often sit near each other, so cosine similarity can retrieve paraphrases that exact keyword matching misses. This is why embeddings are useful for semantic search and duplicate detection. The Boundary Similarity is trained from patterns, not from your team's definition of relevance. A passage can be semantically close and still be stale, unauthoritative, too broad, or unsafe. Professional use means measuring retrieval against labeled examples from the actual job. The Practical Pattern Use embeddings to…
5 minLaunch a Semantic Search PilotThe demo gap One query shines; the next retrieves a related but wrong pricing page. Relatedness feels impressive, but users need useful answers from approved sources. Embedding retrieval Real queries -> labeled passages -> top-k measure -> filters The pilot should test whether nearest passages are useful for the job, not whether embeddings can find something semantically nearby. Demo Five curated searches A measured pilot with a fallback. Similarity should be evaluated against usefulness. 01 Queries 02 Filters 03 Fallback Evidence The team has five polished demo queries and thousands of real search logs.
5 minThink of embeddings as meaning you can measureThe reframe: an embedding is a position, not an answer. Embeddings are useful because computers compare numbers more directly than they compare meaning. A text embedding turns a sentence, paragraph, product, ticket, or image into a vector: a list of floating-point values. Once two items are vectors, the system can measure how close they are. Close usually means related; far usually means unrelated. This is why embeddings power semantic search, clustering, recommendations, anomaly detection, and classification. The same basic move appears in each use case: convert messy material into comparable vectors, then use distance to find neighbors or groups. The…
5 minStart With Retrieval IntentA vector-search project starts as a retrieval contract, not an embedding job. Intent Name what the user is trying to accomplish. Lookup asks for one known thing. Exploration asks for adjacent ideas. Troubleshooting asks for likely causes. These intents should not share the same evaluation target. Corpus Decide what counts as evidence. Include source of truth, freshness rules, access rules, and document types that should be excluded. If the corpus is muddy, the nearest neighbors will be muddy too. Metric Choose the measure that matches the work. Support triage often needs precision in the first few results. Legal or safety…
5 minRelated skills
Optimizing document segments for retrieval accuracy. (Ref: https://www.pinecone.io/learn/chunking-strategies/)
GroundingConnecting model responses to verified external sources (e.g., Google Search). (Ref: https://ai.google.dev/gemini-api/docs/grounding)
Hybrid SearchCombining vector (semantic) and BM25 (keyword) search. (Ref: https://www.pinecone.io/learn/hybrid-search/)
Knowledge Graphs (GraphRAG)Representing entities and relationships for complex reasoning. (Ref: https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/)
Metadata FilteringScoping retrieval using structured attributes (tags, dates). (Ref: https://docs.pinecone.io/docs/metadata-filtering)
Parent Document RetrievalRetrieving small chunks but providing large context to the LLM. (Ref: https://python.langchain.com/docs/modules/data_connection/retrievers/parent_document_retriever)