RAG Engineering
Executive view
Fund corpus governance, access control and evaluation—not only embeddings and a chat UI.
Decision required: Which approved sources may be retrieved, and what is the refuse threshold?
Technical view
Own pipeline stages end to end; preserve structure and access metadata in chunks; verify security trimming with negative tests.
Evaluate retrieval and citation accuracy, not generation quality alone; include no-answer cases in the golden set.
What RAG solves
Retrieval-augmented generation allows a model to answer using approved enterprise knowledge.
A RAG pipeline typically includes:
- Ingestion
- Parsing
- Cleaning
- Chunking
- Metadata enrichment
- Embedding
- Indexing
- Query transformation
- Retrieval
- Reranking
- Context assembly
- Generation
- Citation
- Evaluation
Ingestion
Support PDFs, Office documents, web pages, wikis, databases, APIs, SharePoint, file stores and knowledge platforms. Prefer systems of record with owners over unmanaged drives.
Chunking
Chunking affects retrieval quality. Strategies include fixed size, semantic, section-based, paragraph-based, document-aware, table-aware and parent-child.
Avoid splitting content without preserving heading, source, page, section, version and access classification.
Retrieval strategy
Possible approaches: keyword search, dense vector search, hybrid search, metadata filtering, knowledge graph retrieval, multi-query retrieval and query decomposition.
Hybrid search plus metadata filters is a strong default for enterprise corpora with overlapping terminology.
Architecture depth
Use the Learning Map companions when the engagement needs system design beyond this playbook checklist:
- RAG Architecture — index topologies, intent routing, iterative multi-hop, context assembly contracts, latency budgets and simple-vs-deep decision matrices.
- Graph RAG Architecture — minimal graph schema, hybrid expand-plus-chunks, curator ops, relationship eval and adopt-or-defer memos.
Decision prompts: Which intent classes fail on hybrid RAG alone? Is GraphRAG justified by a measured recall gap and funded curator hours—or should you deepen vector topology first? What p95 budget and ACL fail-closed path are non-negotiable?
Reranking
Reranking improves ordering when many results appear relevant, queries are ambiguous, or documents share similar terminology.
Access-controlled retrieval
The system must not retrieve content the user cannot access. Security trimming should occur before context reaches the model.
Citations
Every grounded answer should record source document, section, page or paragraph, retrieval score, version and timestamp.
RAG evaluation
Measure retrieval precision and recall, context relevance, faithfulness, answer relevance, citation accuracy, unsupported-claim rate and no-answer accuracy.
Case study: financial-services assistant
Ingest only approved product and policy libraries. Chunk by section with product and jurisdiction metadata. Hybrid retrieve, filter by the user’s role and region, rerank, generate with mandatory citations, and refuse when retrieval confidence is low.
Common failure modes
- Dumping unchunked PDFs into embeddings
- No access trimming before generation
- Answers without citations
- Evaluating only generation quality, not retrieval
- Ignoring stale or superseded document versions
Solution Engineer checklist
Solution Engineer checklist
- Pipeline stages owned end to end
- Chunking preserves structure and access metadata
- Hybrid retrieval + filters justified
- Security trimming verified with negative tests
- Citation schema defined
- Golden set includes no-answer cases
Practical exercise
Build a ten-question golden set for your corpus: five answerable, three ambiguous, two that must refuse. Run them after every chunking or retrieval change.
Discussion
Comments
Share feedback or questions about this page. No account required.
Loading comments…