Retrieval-Augmented Generation (RAG) for Agents

RAG gives an agent facts at the moment it acts: instead of relying only on what a model learned in training, the agent retrieves relevant documents from a store and reasons over them. For agents this is how memory, policy and current state enter a decision. The hard part is not retrieval but provenance — an agent acting on a retrieved fact should be able to say where the fact came from and whether it was still true.

Purpose
Ground a decision in current, external facts
Store
Vector, keyword, or a knowledge graph
For agents
How memory and state enter a decision
Hard part
Provenance of a retrieved fact

Retrieval is the easy half

Fetching a relevant passage is largely solved. The agentic problem is accountability: when an agent takes an action because a retrieved document said something, the record should carry which document, which version, and when — otherwise a wrong action traces to a model rather than to the stale fact that actually caused it.

Questions

Is RAG the same as agent memory?

Related but distinct. Memory is what an agent retains across tasks; RAG is the retrieval step that pulls memory, or any external store, into the current decision.

Does RAG remove hallucination?

It reduces it by grounding answers in retrieved text, but a model can still misread or over-generalise, which is why provenance and verification remain necessary.

Where this lives in the estate

FlashyOS — where memory and provenance meet on the mesh

Keep reading

related
What Is Agent Memory?
related
What Is Agent Context (and the Context Window)?
related
What Is an Agent Knowledge Graph?
related
Managing an Agent’s Context Window
referenced by
What Is a Vector Database?
referenced by
What Is an Embedding?
referenced by
What Is an AI Hallucination?
referenced by
RAG vs Fine-Tuning: Which Should You Use?
referenced by
What Is Semantic Search?
referenced by
RAG vs Long Context: How Should a Model Get Its Knowledge?
Agent Data & Memory
What Is a Mixture-of-Experts Model?
Agent Data & Memory
What Is Content Addressing?
Agent Data & Memory
What Is Fine-Tuning?
Agent Data & Memory
What Is a Transformer (Neural Network Architecture)?
Agent Data & Memory
What Is the Attention Mechanism?
Agent Data & Memory
What Is Chain-of-Thought Prompting?
Agent Data & Memory
What Is RLHF (Reinforcement Learning from Human Feedback)?
Agent Data & Memory
What Is Tokenization in AI (Subword Tokens)?
Agent Data & Memory
What Is Model Distillation?
Agent Data & Memory
What Is Model Quantization?
Agent Data & Memory
Transformer vs RNN: What Changed?
Agent Data & Memory
Supervised vs Unsupervised Learning: What’s the Difference?

By Michael Gord · published 2026-10-04 · part of the Agentic Encyclopedia. Dates are the day of publication; events are cited at their own dates.