Semantic search implementation converts documents into vector embeddings and retrieves them by meaning rather than keyword overlap. Atlan’s context layer sits above the vector store in production deployments, certifying that what gets retrieved is current, authorized, and traceable, not just similar in meaning. According to MarketIntelo (2025), the semantic search market was valued at $5.4 billion in 2025 and is projected to reach $23.8 billion by 2034. Models like text-embedding-ada-002, BGE, and E5 generate the embeddings that make this possible.
Quick facts
Permalink to “Quick facts”| Component | Purpose | Common options |
|---|---|---|
| Embedding model | Convert text to vectors | text-embedding-ada-002, BGE-M3, E5-large, Cohere Embed |
| Chunking strategy | Divide documents into retrieval units | Fixed-size, semantic, sentence-level, recursive |
| Vector store | Index and retrieve embeddings | Pinecone, Weaviate, Milvus, pgvector, Qdrant |
| ANN algorithm | Approximate nearest neighbor search | HNSW, IVF, ScaNN |
| Hybrid retrieval | Dense + sparse search combined | BM25 + vector, SPLADE + vector, RRF fusion |
| Reranker | Cross-encoder re-scoring | Cohere Rerank, BGE-Reranker, cross-encoder/ms-marco |
What does a governed context layer look like above your vector store?
Get the Context Layer Ebook for a practical breakdown of the context infrastructure AI agents need above any vector store.
Get the Context Layer EbookHow does semantic search work?
Permalink to “How does semantic search work?”Semantic search works by projecting both documents and queries into a shared high-dimensional vector space, where geometric distance corresponds to semantic similarity. A query vector lands near the documents whose content is most semantically related, regardless of whether they share exact terms.
What are embeddings and how do they capture meaning?
Permalink to “What are embeddings and how do they capture meaning?”An embedding is a dense vector representation of text produced by a neural network trained to capture semantic relationships: “machine learning model” and “neural network algorithm” produce similar embeddings despite sharing no words. Modern models produce vectors of 384 to 1536 dimensions; higher dimensions capture more nuance at higher cost. Most enterprise applications balance quality and cost at 768 dimensions (BGE-base, E5-base), though many teams now default to 1024-dimensional BGE-M3 or E5-large for multi-vector, cross-lingual support.
How does a vector store index and retrieve embeddings?
Permalink to “How does a vector store index and retrieve embeddings?”Vector stores use approximate nearest neighbor (ANN) algorithms to find vectors most similar to a query without exhaustively comparing every indexed vector. HNSW builds a multi-layer graph for average O(log n) query time with tunable recall-latency tradeoffs, and is the default in Weaviate and Milvus; Pinecone uses its own proprietary indexing instead. IVF clusters vectors into centroids and searches only the nearest ones, more memory-efficient but with lower recall at the same latency. Most production deployments measure similarity by cosine similarity.
How is semantic search different from keyword search?
Permalink to “How is semantic search different from keyword search?”Keyword search (BM25, TF-IDF) matches query terms against document terms by statistical frequency. Semantic search retrieves documents that mean the same thing, even with no word overlap: a search for “machine stopped working” returns documents about equipment failure and operational errors regardless of terminology. This vocabulary independence is the core value of semantic search for repositories with inconsistent terminology, but it is approximate: a query for “Q4 2024 revenue ARR” needs lexical matching on those exact terms, not conceptual similarity, which is why production implementations require hybrid search.
Core implementation components
Permalink to “Core implementation components”The core stack has five components that must be configured in the right sequence. Each has an architecture decision that affects all downstream retrieval quality.
How do you choose your embedding model?
Permalink to “How do you choose your embedding model?”General-purpose models (ada-002, text-embedding-3-large) work well via API. Open-source models (BGE-M3, E5-mistral-7b, GTE-large) run on your own infrastructure, cutting per-query costs. Domain-specific models outperform general-purpose ones on specialized vocabulary. The non-negotiable constraint: train and serve on the same embedding model, since mixing models produces meaningless scores.
How do you design your chunking strategy?
Permalink to “How do you design your chunking strategy?”Fixed-size chunking splits into N-token chunks with overlap: simple, but splits sentences mid-context. Recursive character splitting splits on paragraph, then sentence, then word breaks; it outperforms fixed-size chunking for most prose and is the default in LangChain and LlamaIndex. Semantic chunking uses embedding similarity to detect topic changes and split at those boundaries, at higher compute cost but better precision for long documents. Sentence-window chunking indexes individual sentences but retrieves them with surrounding context, balancing precision with enough context for the LLM to answer.
For most enterprise corpora, 300-500 token chunks with 50-token overlap is a reasonable starting point, evaluated against your ground truth query set.
How do you build and index your vector store?
Permalink to “How do you build and index your vector store?”Per SNS Insider (2025), the vector database market was valued at $1.6 billion in 2023, projected to reach $10.6 billion by 2032.
Pinecone (managed, hybrid search natively at billions of vectors), Weaviate (open-source, BM25 + vector, GraphQL), Milvus (open-source, large-scale, multiple ANN algorithms), and pgvector (adds vector search to PostgreSQL for SQL joins and filters) cover most deployment shapes; platforms like BigQuery take a similar approach.
How do you implement retrieval and ranking?
Permalink to “How do you implement retrieval and ranking?”Retrieval translates a user query into a vector, searches the index, and returns the K most similar document chunks:
query_embedding = embedding_model.embed(query_text)
results = vector_store.search(
vector=query_embedding,
top_k=20,
filter={"access_tier": user.access_tier}
)
return [(r.content, r.metadata, r.score) for r in results]
Production retrieval adds metadata filtering (restricting search to documents the requester is authorized to access), freshness filtering, and reranking. Each decision compounds: good embeddings cannot rescue bad chunking, and even ideal vector search misses the failures that hybrid retrieval exists to fix.
Moving from basic to production semantic search
Permalink to “Moving from basic to production semantic search”Getting semantic search running is straightforward. Getting it accurate on real enterprise queries requires three additional components beyond the basic stack.
Why does naive vector search fail at scale?
Permalink to “Why does naive vector search fail at scale?”Vocabulary mismatch. An agent asking for “ARR Q4 2024 finance team definition” gets documents about revenue broadly; the one correct definition ranks third. False positives. A query about revenue recognition policy can return documents about revenue generally, since similarity measures conceptual overlap, not factual relevance. Recall gaps on rare terms. Domain jargon produces unpredictable embeddings; keyword search handles these precisely since it matches character sequences, not learned representations.
How do you implement hybrid search?
Permalink to “How do you implement hybrid search?”Hybrid search combines dense vector retrieval with sparse keyword retrieval (BM25 or SPLADE) to fix vocabulary mismatch without sacrificing semantic understanding. Per Applied AI Research (2025), hybrid dense-plus-sparse retrieval outperforms pure semantic search by 15-30%. BM25 scores by term frequency for cheap, precise exact-match. SPLADE expands queries with related terms before sparse retrieval. Reciprocal Rank Fusion (RRF) merges both ranked lists by combining rank rather than raw score, and is robust to score-scale differences:
def reciprocal_rank_fusion(dense_results, sparse_results, k=60):
scores = {}
for rank, doc in enumerate(dense_results):
scores[doc.id] = scores.get(doc.id, 0) + 1 / (k + rank + 1)
for rank, doc in enumerate(sparse_results):
scores[doc.id] = scores.get(doc.id, 0) + 1 / (k + rank + 1)
return sorted(scores.items(), key=lambda x: x[1], reverse=True)
How do you add reranking to improve precision?
Permalink to “How do you add reranking to improve precision?”A reranker applies a cross-encoder to the top-K results from hybrid retrieval to reorder them by true relevance. Unlike the bi-encoder used for initial embedding, a cross-encoder evaluates the query and each candidate document together for a precise relevance score.
The standard pattern retrieves top-50 from hybrid search and reranks to top-5:
candidates = hybrid_search(query, top_k=50)
reranked = reranker.rerank(
query=query_text,
documents=[c.content for c in candidates],
top_n=5
)
return reranked
Industry benchmarks show adding a reranker typically improves NDCG@10 by 5-15 percentage points over hybrid retrieval alone. Hybrid retrieval and reranking fix precision, not trust: nothing in this stack yet tells the agent whether the top-ranked chunk is current and authorized, or superseded content that merely reads well.
Semantic search in the enterprise AI stack
Permalink to “Semantic search in the enterprise AI stack”For AI agents, semantic search is the retrieval mechanism that powers knowledge access: it issues a query against the knowledge base, retrieves relevant context, and generates a response grounded in that context.
How does semantic search power AI agent knowledge retrieval?
Permalink to “How does semantic search power AI agent knowledge retrieval?”For AI agents, semantic search addresses the context retrieval problem: how does an agent with a finite context window retrieve the right subset of organizational knowledge before responding? It embeds the organizational knowledge base, embeds the query, and retrieves the semantically nearest content as context.
The limitation that matters for production agents: semantic search retrieves what is conceptually similar, not organizationally authoritative. An agent querying “active customer” may retrieve a superseded policy rather than the current canonical definition, and a confident model applying outdated methodology produces more convincing wrong analyses than a weaker one. Governing what the model retrieves is what converts retrieval quality into output trustworthiness.
What is governed semantic search and why does it matter?
Permalink to “What is governed semantic search and why does it matter?”Governed semantic search extends standard semantic search with a governed context layer enforcing authoritativeness, freshness, access control, and certification on results. A joint Atlan-Snowflake benchmark found text-to-SQL agents using a governed semantic layer produce accurate results 3x more often than agents querying bare schemas.
Certification status. The vector store has no signal that a document is certified versus superseded; a governed layer attaches certification metadata and filters out uncertified content. Freshness. Vector similarity is time-independent, so an 18-month-old document scores the same as an identical one indexed yesterday; a governed layer applies freshness filters against a staleness threshold. Access control. Vector similarity is user-agnostic; a governed layer enforces role-based access control through metadata filters at query time.
Is your data estate ready for agents to retrieve from?
Run the AI Agent Context Readiness assessment to see where retrieval still depends on stale or uncertified context.
Assess Your ReadinessHow Atlan approaches semantic search for enterprise AI
Permalink to “How Atlan approaches semantic search for enterprise AI”The challenge
Permalink to “The challenge”Standard semantic search infrastructure (Pinecone, Weaviate, Milvus) handles embedding, indexing, and similarity retrieval. What it does not provide is governed context: results that are authoritative, current, accessible to the requester, and traceable to the agent’s output. This is the context cold start problem for semantic retrieval: strong retrieval infrastructure with no mechanism to distinguish authoritative from superseded results.
The approach
Permalink to “The approach”Atlan’s role is the governed context layer above the vector store. The Enterprise Data Graph stores every data asset with its metadata: certification status, ownership, lineage, access tier, and business-glossary definitions, enriching each semantic query with governance signals. For structured business definitions, a separate semantic lookup interface returns precise, governed definitions rather than approximate matches.
The outcome
Permalink to “The outcome”Context Engineering Studio is where data engineers build and test the semantic layer before agent deployment, surfacing conflicts between document-layer and governed definition-layer context and validating retrieval against known-correct answers before production. The context layer keeps the semantic layer current as definitions change; decision traces log every retrieval event, making every inference auditable.
Real stories from real customers: what governed retrieval looks like at scale
Permalink to “Real stories from real customers: what governed retrieval looks like at scale”"All of the work that we did to get to a shared language amongst people at Workday can be leveraged by AI via Atlan's MCP server."
Joe DosSantos, VP Enterprise Data and Analytics, Workday
"Critical context had to be added manually, slowing down the availability and the usage of data products. With Atlan we cataloged over 18 million assets and 1,300+ glossary terms in our first year, so teams can trust and reuse context across the exchange."
Kiran Panja, Managing Director, Cloud and Data Engineering, CME Group
Workday’s shared business language existed before AI did; the gap was a way for agents to read it. Once exposed through MCP, the same definitions humans aligned on become what the agent retrieves. CME Group shows the scale version: at exchange scale, 18 million assets cannot rely on manually-added context, so certification and glossary terms become infrastructure that teams and agents both query.
See governed retrieval in action
Watch how Atlan brings certification, freshness, and access control to the context AI agents retrieve.
Watch the DemoWhy governed context is the final mile in enterprise semantic search
Permalink to “Why governed context is the final mile in enterprise semantic search”The implementation path from embeddings to production retrieval is well-documented: choose an embedding model, chunk documents, build a vector index, implement hybrid search, add a reranker.
That path produces a system that retrieves the most semantically similar content, not the most authoritative content. Semantic similarity is sufficient for a support agent answering from a knowledge base; for an analyst agent reasoning about revenue metrics, it is necessary but incomplete.
Governed context closes this gap: certification status, freshness filtering, access control at retrieval time, and a structured semantic layer for business definitions with exact lookup rather than approximate similarity. Your vector store retrieves what is conceptually near; governed context ensures it is also organizationally trustworthy. The analyst agent that retrieves the certified, current ARR definition rather than the 2021 wiki page is the production-ready version of this architecture.
FAQs about semantic search implementation
Permalink to “FAQs about semantic search implementation”1. What is semantic search and how is it different from keyword search?
Permalink to “1. What is semantic search and how is it different from keyword search?”Semantic search retrieves documents by meaning, converting documents and queries into vector embeddings and finding the nearest matches by similarity. Keyword search (BM25, TF-IDF) ranks documents by term frequency instead. Semantic search handles synonyms and paraphrases that keyword search misses; keyword search handles exact-term queries that semantic search approximates poorly.
2. Which embedding model should I use for semantic search?
Permalink to “2. Which embedding model should I use for semantic search?”The best embedding model depends on corpus and latency needs. text-embedding-ada-002 or text-embedding-3-large work well via API for mixed enterprise text. BGE-M3 and E5-large offer competitive quality at lower cost for self-hosted deployments. Domain-specific fine-tuning typically outperforms general-purpose models by 10-20% on in-domain queries.
3. What is the difference between dense retrieval and sparse retrieval?
Permalink to “3. What is the difference between dense retrieval and sparse retrieval?”Dense retrieval embeds text into continuous vectors and retrieves by similarity, handling synonyms and paraphrases. Sparse retrieval (BM25, SPLADE) represents documents as term-weight vectors and retrieves by term overlap, handling exact matches and rare terms. Production systems combine both through hybrid retrieval and Reciprocal Rank Fusion, so each method covers the other’s failure modes.
4. What is hybrid search and when should I use it?
Permalink to “4. What is hybrid search and when should I use it?”Hybrid search combines dense vector retrieval with sparse keyword retrieval (BM25 or SPLADE), merging the result lists with Reciprocal Rank Fusion. Use it whenever queries mix semantic intent with exact-term requirements, which describes most enterprise search workloads. Hybrid search should be the default for production enterprise implementations.
5. How do you evaluate semantic search quality?
Permalink to “5. How do you evaluate semantic search quality?”Evaluate semantic search across retrieval quality and end-to-end answer quality. For retrieval, build a ground truth set of query-document pairs and measure precision@K and recall@K. For end-to-end quality, use LLM-as-judge scoring for faithfulness and answer correctness, with explicit thresholds set before production. Track mean reciprocal rank (MRR) in production to detect retrieval degradation over time.
Sources
Permalink to “Sources”- Semantic Search Market Research Report, MarketIntelo. https://marketintelo.com/report/semantic-search-market
- Vector Database Market Forecast 2023-2032, SNS Insider via Yahoo Finance. https://finance.yahoo.com/news/vector-database-market-reach-usd-150000060.html
- Enterprise RAG Architecture: A Practitioner’s Guide, Applied AI Research. https://www.applied-ai.com/briefings/enterprise-rag-architecture/
- The Story of BigQuery Vector Search, Google Cloud Blog. https://cloud.google.com/blog/products/data-analytics/the-story-of-bigquery-vector-search
- Vector Databases Guide for RAG Applications, DEV Community. https://dev.to/klement_gunndu_e16216829c/vector-databases-guide-rag-applications-2025-55oj
