RAG Systems in Production Cheat Sheet
|
This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production. |
A single-page index of quick back-links to every page in this sub-section, grouped the same way as the navigation. It was written on 2026-09-30 against LangChain 1.4.3 with FastAPI 0.142.2, Spring AI 2.0.1 on Spring Boot 4.1.1 and LangChain4j 1.20.2; the full list is the version baseline on the landing page.
The downloadable PDF is a separate, single A4 page meant for printing. It states the version baseline and covers:
-
the reference architecture and the latency budget ;
-
the parser-choice table (the parser ladder) and the multimodal options for tables, images and audio;
-
ingestion freshness patterns: idempotent jobs, content hashes, CDC, deletes and PII redaction;
-
routing and indexing patterns;
-
the memory decision table (window, summary, long-term) with the three-stack persistence snippets;
-
the citation response schema and the hallucination checks;
-
the guardrail layers and the ACL filter snippets for the three stacks;
-
the
/v1/askAPI contract and the SSE event types; -
the RAG-over-MCP pattern;
-
the cache tiers;
-
the GraphRAG decision table;
-
the evaluation and observability metrics.
Overview — RAG Systems in Production.
Architecture — Production RAG Architecture.
Ingestion — Document Parsing, Multimodal RAG and Ingestion Pipelines & Freshness.
Retrieval — Query Understanding & Routing and Advanced Indexing Patterns.
Conversation and answers — Conversational RAG & Memory, Citations & Grounding, Hallucination Detection & Correction, Guardrails & Prompt Injection and Access Control & Privacy.
Exposing RAG — Serving RAG as an API, RAG Behind MCP and Caching, Latency & Cost.
Knowledge graphs — GraphRAG & Knowledge Graph Construction, Text2Cypher & Graph Retrievers and Graph-Powered Recommendations.
Operations — Evaluation at Scale, Observability & Tracing and Deployment Patterns.
The one idiom the whole sheet builds on — the ACL filter comes from the verified identity and is ANDed with anything the question adds — in its LangChain form (explained on Access Control & Privacy):
def retriever_for(vector_store, readable_acls: list[str], extra: dict | None = None):
acl = {"acl": {"$in": readable_acls}} # from the verified token, never from the prompt
flt = {"$and": [acl, extra]} if extra else acl
return vector_store.as_retriever(search_kwargs={"k": 6, "filter": flt})
Source: LangChain — PGVector (metadata filtering).
References
The PDF summarises the pages above; each source is cited in full on the page that covers it, and in the bibliography.