Back

Rahul Agarwal

Founder | Agentic AI... • 2m

2 ways AI systems today generate smarter answers. I’ve explained both in simple steps below. 𝗥𝗔𝗚 (𝗥𝗲𝘁𝗿𝗶𝗲𝘃𝗮𝗹-𝗔𝘂𝗴𝗺𝗲𝗻𝘁𝗲𝗱 𝗚𝗲𝗻𝗲𝗿𝗮𝘁𝗶𝗼𝗻) (𝘴𝘵𝘦𝘱-𝘣𝘺-𝘴𝘵𝘦𝘱) RAG lets AI fetch and use real-time external information to generate fact-based, updated answers. 1. 𝗦𝘁𝗮𝗿𝘁 𝘄𝗶𝘁𝗵 𝗾𝘂𝗲𝗿𝘆 – User asks a question or gives input. 2. 𝗘𝗻𝗰𝗼𝗱𝗲 𝗶𝗻𝗽𝘂𝘁 – Convert it into a machine-readable format. 3. 𝗧𝗼𝗸𝗲𝗻𝗶𝘇𝗲 𝘁𝗲𝘅𝘁 – Break the query into small understandable pieces. 4. 𝗚𝗲𝗻𝗲𝗿𝗮𝘁𝗲 𝗲𝗺𝗯𝗲𝗱𝗱𝗶𝗻𝗴𝘀 – Turn text into numeric vectors that capture meaning. 5. 𝗥𝗲𝘁𝗿𝗶𝗲𝘃𝗲 𝗸𝗻𝗼𝘄𝗹𝗲𝗱𝗴𝗲 – Search a vector database for relevant information. 6. 𝗦𝗲𝗹𝗲𝗰𝘁 𝗰𝗼𝗻𝘁𝗲𝘅𝘁 – Pick the most useful retrieved chunks. 7. 𝗙𝗶𝗹𝘁𝗲𝗿 𝗻𝗼𝗶𝘀𝗲 – Remove irrelevant or low-quality data. 8. 𝗙𝘂𝘀𝗲 𝗸𝗻𝗼𝘄𝗹𝗲𝗱𝗴𝗲 – Combine external info with the model’s internal knowledge. 9. 𝗚𝗲𝗻𝗲𝗿𝗮𝘁𝗲 𝗿𝗲𝘀𝗽𝗼𝗻𝘀𝗲 – Create an answer using both retrieved data and reasoning. 10. 𝗩𝗮𝗹𝗶𝗱𝗮𝘁𝗲 𝗼𝘂𝘁𝗽𝘂𝘁 – Check for factual accuracy and coherence. 11. 𝗥𝗲𝗺𝗼𝘃𝗲 𝗯𝗶𝗮𝘀 – Eliminate misleading or biased phrasing. 12. 𝗗𝗲𝗹𝗶𝘃𝗲𝗿 𝗳𝗶𝗻𝗮𝗹 𝗼𝘂𝘁𝗽𝘂𝘁 – Provide the user with a reliable, fact-backed response. __________________________________________________ 𝗖𝗔𝗚 (𝗖𝗼𝗻𝘁𝗲𝘅𝘁-𝗔𝘂𝗴𝗺𝗲𝗻𝘁𝗲𝗱 𝗚𝗲𝗻𝗲𝗿𝗮𝘁𝗶𝗼𝗻) (𝘴𝘵𝘦𝘱-𝘣𝘺-𝘴𝘵𝘦𝘱) CAG lets AI remember past interactions to provide more relevant, personalized, and context-aware responses. 1. 𝗦𝘁𝗮𝗿𝘁 𝘄𝗶𝘁𝗵 𝗾𝘂𝗲𝗿𝘆 – User provides input or a task request. 2. 𝗣𝗿𝗼𝗰𝗲𝘀𝘀 𝗶𝗻𝗽𝘂𝘁 – Convert it into a structured format for the model. 3. 𝗜𝗻𝗷𝗲𝗰𝘁 𝗰𝗼𝗻𝘁𝗲𝘅𝘁 – Add relevant background (past chats, user data, goals). 4. 𝗥𝗲𝗰𝗮𝗹𝗹 𝗱𝗼𝗺𝗮𝗶𝗻 𝗺𝗲𝗺𝗼𝗿𝘆 – Bring in domain-specific knowledge or prior interactions. 5. 𝗔𝗰𝗰𝗲𝘀𝘀 𝗸𝗻𝗼𝘄𝗹𝗲𝗱𝗴𝗲 𝗯𝗮𝘀𝗲 – Fetch related internal or external references. 6. 𝗠𝗲𝗿𝗴𝗲 𝗱𝗮𝘁𝗮 – Combine all context and knowledge sources. 7. 𝗚𝗲𝗻𝗲𝗿𝗮𝘁𝗲 𝗼𝘂𝘁𝗽𝘂𝘁 – Create a response using this rich, aligned context. 8. 𝗩𝗲𝗿𝗶𝗳𝘆 𝗿𝗲𝘀𝗽𝗼𝗻𝘀𝗲 – Check the result for logical and contextual accuracy. 9. 𝗘𝘅𝗽𝗮𝗻𝗱 𝗰𝗼𝗻𝘁𝗲𝘅𝘁 – Enrich the response with more relevant details if needed. 10. 𝗔𝗹𝗶𝗴𝗻 𝗰𝗼𝗻𝘁𝗲𝘅𝘁 – Ensure the output fits the user’s prior goals or conversation. 11. 𝗖𝗵𝗲𝗰𝗸 𝗰𝗼𝗻𝘀𝗶𝘀𝘁𝗲𝗻𝗰𝘆 – Confirm that everything stays coherent and connected. 12. 𝗗𝗲𝗹𝗶𝘃𝗲𝗿 𝗳𝗶𝗻𝗮𝗹 𝗼𝘂𝘁𝗽𝘂𝘁 – Provide a complete, context-aware, and consistent answer. In short: • 𝗥𝗔𝗚 gives models access to the 𝗿𝗶𝗴𝗵𝘁 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻. • 𝗖𝗔𝗚 helps them use it 𝗶𝗻 𝘁𝗵𝗲 𝗿𝗶𝗴𝗵𝘁 𝗰𝗼𝗻𝘁𝗲𝘅𝘁. Together, they make AI systems: more accurate, more reliable, more personalized and more useful in real-world workflows. ✅ Repost for others in your network who can benefit from this.

Reply
1
7

More like this

Recommendations from Medial

Rahul Agarwal

Founder | Agentic AI... • 2m

SLM vs LLM — which AI model is best for you? I’ve explained both in simple steps below. 𝗦𝗟𝗠 (𝗦𝗺𝗮𝗹𝗹 𝗟𝗮𝗻𝗴𝘂𝗮𝗴𝗲 𝗠𝗼𝗱𝗲𝗹) (𝘴𝘵𝘦𝘱-𝘣𝘺-𝘴𝘵𝘦𝘱) Lightweight AI models built for speed, focus, and on-device execution. 1. 𝗗𝗲𝗳𝗶𝗻𝗲

See More
Reply
2
12
Image Description

Rahul Agarwal

Founder | Agentic AI... • 28d

4 core ways multi-agent AI systems are designed. I’ve explained each one in simple steps below. 1. 𝗣𝗮𝗿𝗮𝗹𝗹𝗲𝗹 𝗣𝗮𝘁𝘁𝗲𝗿𝗻 (𝘚𝘵𝘦𝘱-𝘣𝘺-𝘴𝘵𝘦𝘱) • One input (task) comes in. • The task is 𝘀𝗽𝗹𝗶𝘁 𝗶𝗻𝘁𝗼 𝗽𝗮𝗿𝘁𝘀. • Multiple AI age

See More
Reply
4
10
1
Image Description

Rahul Agarwal

Founder | Agentic AI... • 4m

How Multi-Agent AI systems actually work? Explained in a very simple way. Read below: -> 𝗧𝗵𝗲 𝗠𝗮𝗶𝗻 𝗔𝗜 𝗔𝗴𝗲𝗻𝘁 The main 𝗔𝗜 𝗔𝗴𝗲𝗻𝘁 is the 𝗼𝗿𝗰𝗵𝗲𝘀𝘁𝗿𝗮𝘁𝗼𝗿. It has several capabilities: • 𝗗𝗮𝘁𝗮𝗯𝗮𝘀𝗲 – Stores knowledge o

See More
Reply
6
19
1
Image Description

Rahul Agarwal

Founder | Agentic AI... • 1m

2 main frameworks powering today’s AI workflows. I’ve explained both in simple steps below. 𝗡𝟴𝗡 (𝗟𝗶𝗻𝗲𝗮𝗿 𝗔𝗴𝗲𝗻𝘁 𝗙𝗹𝗼𝘄) (𝘴𝘵𝘦𝘱-𝘣𝘺-𝘴𝘵𝘦𝘱) N8N lets AI follow a 𝘀𝘁𝗿𝗮𝗶𝗴𝗵𝘁, 𝘃𝗶𝘀𝘂𝗮𝗹 𝘄𝗼𝗿𝗸𝗳𝗹𝗼𝘄, moving step-by-step

See More
1 Reply
6

Rahul Agarwal

Founder | Agentic AI... • 11d

Most people building modern AI systems miss these steps. I've explained each step in a simple way below. 1. 𝗠𝘂𝗹𝘁𝗶-𝗔𝗴𝗲𝗻𝘁 𝗜𝗻𝘁𝗲𝗿𝗼𝗽𝗲𝗿𝗮𝗯𝗶𝗹𝗶𝘁𝘆 How multiple AI agents work together as a system. Step-by-step: • 𝗨𝘀𝗲𝗿 𝗥𝗲𝗾𝘂�

See More
2 Replies
1
8
Image Description
Image Description

Rahul Agarwal

Founder | Agentic AI... • 27d

Most people don't even know these basics of RAG. I've explained it in a simple way below. 1. 𝗜𝗻𝗱𝗲𝘅𝗶𝗻𝗴 Convert documents into a format that AI can quickly search later. Step-by-step: • 𝗗𝗼𝗰𝘂𝗺𝗲𝗻𝘁: You start with files like PDFs, Word

See More
4 Replies
21
33
4
Image Description
Image Description

Rahul Agarwal

Founder | Agentic AI... • 4m

3 ways how most AI systems are built. I’ve explained each one step-by-step. 1) 𝗧𝗿𝗮𝗱𝗶𝘁𝗶𝗼𝗻𝗮𝗹 𝗔𝗜 (𝘀𝘁𝗲𝗽-𝗯𝘆-𝘀𝘁𝗲𝗽) 1. 𝗦𝗲𝘁 𝘁𝗮𝘀𝗸 – Decide what problem the model should solve. 2. 𝗖𝗼𝗹𝗹𝗲𝗰𝘁 𝗱𝗮𝘁𝗮 – Gather lots of example

See More
1 Reply
8
18
1

Download the medial app to read full posts, comements and news.