Retrieval-Augmented Generation (RAG)
AI models like ChatGPT, DeepSeek, LLAMA are powerful, but they lack up to date knowledge or they cannot specifically answer if you want results related to yours data. RAG solves this problem by allowing you to communicate directly with your documents and data.
RAG stands for Retrieval-Augmented Generation.
- We use Rag to add external data with response of LLM.
RAG FLOW

Preparation of data for retrieval:

What is RAG, Graph Rag and Agentic Rag?
Retrieval-Augmented Generation:

Example:
Imagine, you uploaded records of employees of specific company.
You ask Chabot, how many employees are in company. How many employees joined in this year?
Flow:
User Query ───► Retriever ───► Relevant Docs ───► Generator (LLM) ───► Final Answer
Graph RAG
Example:
When Instead of just retrieving text, graph RAG can represent that how cnc motor receives instructions.
Agentic RAG
Example:
If you ask chatbot: “Draw the 10mm circle on CNC machine”.
Regular RAG might just fetch text about circle commands.
Agentic RAG could:
- Retrieve CNC manual.
- Decide to use a G-code simulator tool.
- Run the simulation.
- Return both the code and the result
Difference/Comparison between Graph RAG and Agentic RAG?
