Retrieval-augmented generation (RAG) is usually the first production AI system an organisation builds: a model answers questions using documents that are retrieved at query time. It is valuable, and it is also read-only. The next step, agentic AI, lets the system act: call tools, update records and run multi-step workflows. That step changes the engineering problem.
What changes when a system can act
A RAG system can be wrong and still be harmless: a user reads the answer and judges it. An agent that is wrong can send the message, change the record or trigger the process. Three things therefore matter more than they did before:
- Bounded authority. Give each agent only the tools and permissions its task needs, and make the boundary explicit in code, not just in the prompt.
- Clarify, don't guess. When a required parameter is missing, the safest behaviour is a short question. A controlled clarification flow with a limit on follow-ups keeps the conversation useful and prevents invented values.
- Human approval where it counts. Irreversible or high-impact actions should pass through a review step that a person can approve or reject.
Keep retrieval, add orchestration
Agentic systems do not replace retrieval; they depend on it. Retrieval grounds the agent in trusted data, while an orchestration layer decides which tool or sub-task comes next. Frameworks such as LangGraph express this as an explicit graph of states, which makes behaviour easier to test than an open-ended loop.
Evaluate the trajectory, not only the answer
For RAG, evaluation focuses on retrieval quality and answer faithfulness. For agents, also evaluate the sequence of decisions: did it choose the right tool, did it stop when it should, and did it recover from a failed call? Log every tool call with its inputs and outputs so failures can be replayed.
Design for operations
Production readiness is mostly operational: timeouts and retries on every external call, cost and latency budgets, secrets kept out of prompts, and monitoring that alerts on unusual behaviour. Treat the model as one component in a system with the same discipline you would apply to any other service.
The practical path is incremental: start with grounded retrieval, add one low-risk tool, measure, and widen the agent's authority only as evidence of reliability accumulates.
- Agents
- Architecture
- RAG
Related expertise: Generative AI & LLMs, Agentic AI.