What is RAG?
RAG addresses a core limitation of large language models: they only know what was in their training data. A RAG system retrieves relevant passages from external sources — support docs, knowledge bases, regulations, product specs — and passes them to the model alongside the user's question, so answers are grounded in current, citable material.
How does RAG work?
The typical pipeline has four stages: ingest (documents are chunked, embedded, and stored in a vector database), retrieve (the query is embedded and matched against the index), re-rank (the best candidates are reordered), and generate (the model answers from the retrieved context, often with citations). Chunking granularity and embedding model choice drive accuracy at every stage.
RAG fits when data changes faster than you can retrain, when citations and traceability matter (legal, healthcare, finance), and when a bounded document set covers most queries. Tasks that need the model to reason over data rather than recall it point to fine-tuning or an agent with tool use. In production, evaluation is the make-or-break work: measure retrieval precision and answer faithfulness separately, on representative queries.
Where does it show up in our work?
Most of the assistants we build for support, policy and internal knowledge are RAG systems over a bounded document set: a few hundred pages of procedures, contracts or product specs that change monthly. Evaluation decides success, so every pipeline ships with a test set of real questions and we report retrieval precision and answer faithfulness separately. See AI and automation for how such a system is scoped.