Point a general-purpose AI assistant at your organization's questions and it will answer every one of them — fluently, confidently, and some meaningful percentage of the time, wrongly. It quotes a policy that was superseded last quarter. It surfaces a price from a document the asker was never permitted to see. It invents a contract clause that sounds exactly like something your legal team would write. Each wrong answer costs more than the question was worth, and after a few of them, your people stop asking. The pilot that was supposed to unlock institutional knowledge quietly becomes a toy.
The problem isn't the model. It's that the model was asked to answer from memory instead of from evidence. Contextual search — the pattern the industry calls retrieval-augmented generation, or RAG — fixes that by finding the right, permitted, current passages first and letting the model write only from what was found. Done well, the answer arrives with its sources attached. Done poorly, it's the same hallucination with extra steps.
Walk the Pipeline
The walkthrough below follows a single question through the five stages of a well-built contextual search pipeline. Step through each stage to see what happens — and what each stage protects you from.
Splendor · Intelligent systems
From a question to an answer you can trust.
Follow one question through a retrieval-augmented generation pipeline, from governed knowledge to a cited answer.
▤
01 · Knowledge foundation
The librarian prepares the knowledge
Documents are parsed into meaningful passages. Each passage keeps its source, version, effective date, and access rules before it enters the search index.
Ingestion
Chunking
Embeddings
Indexing
1 / 5
?
02 · Query and context
The question gets its context
The system understands what the person is asking and applies identity, role, tenant, and time constraints before searching.
Query understanding
Authorization filters
Context
2 / 5
2×
03 · Candidate retrieval
Two scouts search in parallel
BM25 finds exact words and identifiers. Vector search finds related meaning, even when the phrasing differs. Both return candidate passages.
BM25: k1 + b
Dense vector kNN: k
Hybrid retrieval
3 / 5
✓
04 · Evidence ranking
The judge picks the strongest evidence
Reciprocal rank fusion combines both lists. A reranker reads the question beside each candidate and promotes passages that actually answer it.
RRF fusion
Cross-encoder reranking
Deduplication
4 / 5
“”
05 · Grounded response
The writer answers with receipts
The model receives a small set of permitted, current passages and cites its sources. If the evidence is missing or conflicting, it says so.
Context assembly
Grounded generation
Citations
5 / 5
Quality improves through evaluation: test retrieval recall, ranking, citations, access boundaries, and latency. LoRA or QLoRA is an optional model adaptation step when measured evidence supports it.
Each stage exists because skipping it produces a specific, expensive failure:
Prepare is where governance lives. Passages that carry their source, version, effective date, and access rules can be filtered, superseded, and audited. Passages that don't are how last year's pricing ends up in this year's answer. This is the same discipline that makes data strategy come before AI strategy.
Understand is where security lives. Applying identity, role, and tenant constraints before the search runs means restricted content never enters the candidate pool — a much stronger guarantee than asking the model to please not mention it.
Retrieve is where recall lives. Keyword search catches part numbers, policy IDs, and exact phrases; vector search catches the question asked in different words. Either one alone misses answers the other would have found.
Rank is where precision lives. Fusing both result lists and reranking against the actual question means the model reads the eight passages that matter instead of the eighty that vaguely relate.
Answer is where trust lives. Citations let a skeptical reader verify in one click — and a system that says "the evidence conflicts" when it does is worth ten that always sound certain.
What to Demand Before You Trust It
Every stage above is measurable, which means a contextual search system should be accepted on numbers, not vibes. Before rolling one out to your organization, demand a standing evaluation harness that reports: retrieval recall against a golden question set (did the right passage make the candidate list?), citation coverage (what fraction of claims trace to a source?), access-boundary tests (can a user ever see a passage their role forbids?), freshness (do superseded documents stop appearing the day they're replaced?), and latency at the volumes you'll actually run. Fine-tuning the model itself is an optional, later step — taken only when the evaluation numbers say retrieval and ranking are no longer the bottleneck.
Most organizations that struggle here don't have a model problem. They have the disconnection problem in a new costume: knowledge scattered across systems, no ownership, no versioning, no access model — the same gaps that determine whether you're AI-ready at all. Our AI & intelligent automation practice builds contextual search this way: governance first, evaluation always, model adaptation only when the evidence supports it.
Is your knowledge ready to be searched?
The free AI Readiness Assessment scores the four conditions reliable AI answers depend on — including whether your data can be trusted.
20+ years in AI, enterprise architecture, and application development. Helping organizations modernize technology and drive measurable business outcomes.
Work with Splendor
Want AI answers your organization can trust?
Let's talk about the knowledge you have, the questions your people ask, and what a governed contextual search pipeline would look like for you.