Back

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 2h

Retrieval vs Reasoning: 2 key parts of every LLM. I've explained each with specific notes. ๐—ฆ๐˜๐—ฒ๐—ฝ 1 โ€“ ๐—จ๐—ป๐—ฑ๐—ฒ๐—ฟ๐˜€๐˜๐—ฎ๐—ป๐—ฑ ๐—ฅ๐—ฒ๐˜๐—ฟ๐—ถ๐—ฒ๐˜ƒ๐—ฎ๐—น โ€ข AI searches external data sources to find relevant information. โ€ข It pulls facts from databases, documents, or knowledge bases. ๐—ก๐—ผ๐˜๐—ฒ: Retrieval focuses on ๐—ณ๐—ถ๐—ป๐—ฑ๐—ถ๐—ป๐—ด ๐—ถ๐—ป๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐˜๐—ถ๐—ผ๐—ป, not thinking about it. ๐—ฆ๐˜๐—ฒ๐—ฝ 2 โ€“ ๐—จ๐—ป๐—ฑ๐—ฒ๐—ฟ๐˜€๐˜๐—ฎ๐—ป๐—ฑ ๐—ฅ๐—ฒ๐—ฎ๐˜€๐—ผ๐—ป๐—ถ๐—ป๐—ด โ€ข AI analyzes information using logic & patterns. โ€ข It connects ideas to produce insights or decisions. ๐—ก๐—ผ๐˜๐—ฒ: Reasoning focuses on ๐˜‚๐—ป๐—ฑ๐—ฒ๐—ฟ๐˜€๐˜๐—ฎ๐—ป๐—ฑ๐—ถ๐—ป๐—ด & ๐—ฎ๐—ป๐—ฎ๐—น๐˜†๐˜‡๐—ถ๐—ป๐—ด ๐—ถ๐—ป๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐˜๐—ถ๐—ผ๐—ป. ๐—ฆ๐˜๐—ฒ๐—ฝ 3 โ€“ ๐—ฅ๐—ฒ๐˜๐—ฟ๐—ถ๐—ฒ๐˜ƒ๐—ฎ๐—น ๐—ฆ๐—ฒ๐—ฎ๐—ฟ๐—ฐ๐—ต๐—ฒ๐˜€ ๐—˜๐˜…๐˜๐—ฒ๐—ฟ๐—ป๐—ฎ๐—น ๐——๐—ฎ๐˜๐—ฎ โ€ข It retrieves facts from vector databases, APIs, or files. โ€ข Systems use embeddings and indexing to locate relevant content. ๐—ก๐—ผ๐˜๐—ฒ: Strong retrieval depends heavily on ๐—ฑ๐—ฎ๐˜๐—ฎ ๐—พ๐˜‚๐—ฎ๐—น๐—ถ๐˜๐˜† & ๐—ถ๐—ป๐—ฑ๐—ฒ๐˜…๐—ถ๐—ป๐—ด. ๐—ฆ๐˜๐—ฒ๐—ฝ 4 โ€“ ๐—ฅ๐—ฒ๐—ฎ๐˜€๐—ผ๐—ป๐—ถ๐—ป๐—ด ๐—”๐—ป๐—ฎ๐—น๐˜†๐˜‡๐—ฒ๐˜€ ๐—ง๐—ต๐—ฒ ๐—œ๐—ป๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐˜๐—ถ๐—ผ๐—ป โ€ข The model interprets the context & instructions. โ€ข It breaks complex problems into smaller logical steps. ๐—ก๐—ผ๐˜๐—ฒ: Reasoning works best when problems are ๐˜€๐˜๐—ฟ๐˜‚๐—ฐ๐˜๐˜‚๐—ฟ๐—ฒ๐—ฑ ๐—ฐ๐—น๐—ฒ๐—ฎ๐—ฟ๐—น๐˜†. ๐—ฆ๐˜๐—ฒ๐—ฝ 5 โ€“ ๐—ฅ๐—ฒ๐˜๐—ฟ๐—ถ๐—ฒ๐˜ƒ๐—ฎ๐—น ๐—œ๐—บ๐—ฝ๐—ฟ๐—ผ๐˜ƒ๐—ฒ๐˜€ ๐—™๐—ฎ๐—ฐ๐˜๐˜‚๐—ฎ๐—น ๐—”๐—ฐ๐—ฐ๐˜‚๐—ฟ๐—ฎ๐—ฐ๐˜† โ€ข Grounding answers in real documents reduces hallucinations. โ€ข It helps AI respond with reliable information. ๐—ก๐—ผ๐˜๐—ฒ: Retrieval is best for ๐—ณ๐—ฎ๐—ฐ๐˜๐˜€, ๐—ฟ๐—ฒ๐—ณ๐—ฒ๐—ฟ๐—ฒ๐—ป๐—ฐ๐—ฒ๐˜€, & ๐—ฑ๐—ผ๐—ฐ๐˜‚๐—บ๐—ฒ๐—ป๐˜๐—ฎ๐˜๐—ถ๐—ผ๐—ป. ๐—ฆ๐˜๐—ฒ๐—ฝ 6 โ€“ ๐—ฅ๐—ฒ๐—ฎ๐˜€๐—ผ๐—ป๐—ถ๐—ป๐—ด ๐—ฆ๐—ผ๐—น๐˜ƒ๐—ฒ๐˜€ ๐—–๐—ผ๐—บ๐—ฝ๐—น๐—ฒ๐˜… ๐—ฃ๐—ฟ๐—ผ๐—ฏ๐—น๐—ฒ๐—บ๐˜€ โ€ข It links ideas, patterns, and concepts together. โ€ข It generates analysis, decisions, or explanations. ๐—ก๐—ผ๐˜๐—ฒ: Reasoning is best for ๐—ฝ๐—น๐—ฎ๐—ป๐—ป๐—ถ๐—ป๐—ด, ๐—ฎ๐—ป๐—ฎ๐—น๐˜†๐˜€๐—ถ๐˜€, & ๐—ฑ๐—ฒ๐—ฐ๐—ถ๐˜€๐—ถ๐—ผ๐—ป-๐—บ๐—ฎ๐—ธ๐—ถ๐—ป๐—ด. ๐—ฆ๐˜๐—ฒ๐—ฝ 7 โ€“ ๐—ฅ๐—ฒ๐˜๐—ฟ๐—ถ๐—ฒ๐˜ƒ๐—ฎ๐—น ๐—œ๐˜€ ๐—™๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ โ€ข It mainly performs search & lookup operations. โ€ข It usually requires less compute & fewer tokens. ๐—ก๐—ผ๐˜๐—ฒ: Retrieval scales efficiently with ๐—น๐—ฎ๐—ฟ๐—ด๐—ฒ ๐—ธ๐—ป๐—ผ๐˜„๐—น๐—ฒ๐—ฑ๐—ด๐—ฒ ๐—ฏ๐—ฎ๐˜€๐—ฒ๐˜€. ๐—ฆ๐˜๐—ฒ๐—ฝ 8 โ€“ ๐—ฅ๐—ฒ๐—ฎ๐˜€๐—ผ๐—ป๐—ถ๐—ป๐—ด ๐—œ๐˜€ ๐— ๐—ผ๐—ฟ๐—ฒ ๐—–๐—ผ๐—บ๐—ฝ๐˜‚๐˜๐—ฒ-๐—œ๐—ป๐˜๐—ฒ๐—ป๐˜€๐—ถ๐˜ƒ๐—ฒ โ€ข It requires deeper thinking & multiple steps. โ€ข This increases token usage & computational cost. ๐—ก๐—ผ๐˜๐—ฒ: Reasoning should be used ๐—ผ๐—ป๐—น๐˜† ๐˜„๐—ต๐—ฒ๐—ป ๐—ฎ๐—ป๐—ฎ๐—น๐˜†๐˜€๐—ถ๐˜€ ๐—ถ๐˜€ ๐—ป๐—ฒ๐—ฒ๐—ฑ๐—ฒ๐—ฑ. ๐—ฆ๐˜๐—ฒ๐—ฝ 9 โ€“ ๐—–๐—ผ๐—บ๐—ฏ๐—ถ๐—ป๐—ฒ ๐—ฅ๐—ฒ๐˜๐—ฟ๐—ถ๐—ฒ๐˜ƒ๐—ฎ๐—น ๐—”๐—ป๐—ฑ ๐—ฅ๐—ฒ๐—ฎ๐˜€๐—ผ๐—ป๐—ถ๐—ป๐—ด โ€ข First retrieve relevant information from external sources. โ€ข Then apply reasoning to analyze the retrieved context. ๐—ก๐—ผ๐˜๐—ฒ: Systems perform best when ๐—ฏ๐—ผ๐˜๐—ต ๐—ฎ๐—ฝ๐—ฝ๐—ฟ๐—ผ๐—ฎ๐—ฐ๐—ต๐—ฒ๐˜€ ๐˜„๐—ผ๐—ฟ๐—ธ ๐˜๐—ผ๐—ด๐—ฒ๐˜๐—ต๐—ฒ๐—ฟ. ๐—ฆ๐˜๐—ฒ๐—ฝ 10 โ€“ ๐—ข๐—ฝ๐˜๐—ถ๐—บ๐—ถ๐˜‡๐—ฒ ๐—™๐—ผ๐—ฟ ๐—ฅ๐—ฒ๐—ฎ๐—น ๐—ฆ๐˜†๐˜€๐˜๐—ฒ๐—บ๐˜€ โ€ข Cache retrieved results to reduce repeated work. โ€ข Route simple tasks away from heavy reasoning. โ€ข Measure cost based on outcomes, not just tokens. ๐—ก๐—ผ๐˜๐—ฒ: Efficient AI systems focus on ๐—ฏ๐—ฎ๐—น๐—ฎ๐—ป๐—ฐ๐—ถ๐—ป๐—ด ๐—ฟ๐—ฒ๐˜๐—ฟ๐—ถ๐—ฒ๐˜ƒ๐—ฎ๐—น & ๐—ฟ๐—ฒ๐—ฎ๐˜€๐—ผ๐—ป๐—ถ๐—ป๐—ด. The best AI systems use retrieval for facts and reasoning for analysis. โœ… Repost for others so they can benefit from this.

Reply
6

More like this

Recommendations from Medial

Image Description

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 2m

Most AI projects fail after deployment. Iโ€™ve explained the core problems step by step. ๐—ฆ๐˜๐—ฒ๐—ฝ 1 โ€“ ๐——๐—ฎ๐˜๐—ฎ โ€ข Collects raw information from multiple sources. โ€ข Forms the foundation of every AI system. ๐—˜.๐—ด: APIs, logs, databases, user inputs. ๐—ก

See More
1 Reply
28
20

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 1m

Most companies are missing these AI shifts. I've explained each one in simple below. ๐—ฆ๐˜๐—ฒ๐—ฝ 1 โ€“ ๐—ง๐—ฒ๐—ฎ๐—บ๐˜€ โ€ข Work was done only by humans. โ€ข Every role depended on people executing tasks. ๐—ก๐—ผ๐˜„: AI agents join teams as workers. ๐—ก๐—ผ๐˜๐—ฒ: AI does

See More
Reply
3
7

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 3m

Your AI sucks because itโ€™s stuck at Level 1. You can easily take it to Level 3. I've explained below. ๐—ฆ๐˜๐—ฒ๐—ฝ 1 โ€“ ๐—•๐—ฎ๐˜€๐—ถ๐—ฐ ๐—Ÿ๐—Ÿ๐—  (๐——๐—ผ๐—ฐ๐˜‚๐—บ๐—ฒ๐—ป๐˜ ๐—ฃ๐—ฟ๐—ผ๐—ฐ๐—ฒ๐˜€๐˜€๐—ถ๐—ป๐—ด) โ€ข This is the simplest level of AI systems. โ€ข You give input text or a docu

See More
Reply
1
6
Image Description
Image Description

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 7m

Simple explanation of Traditional RAG vs Agentic RAG vs MCP. 1. ๐—ง๐—ฟ๐—ฎ๐—ฑ๐—ถ๐˜๐—ถ๐—ผ๐—ป๐—ฎ๐—น ๐—ฅ๐—”๐—š (๐—ฅ๐—ฒ๐˜๐—ฟ๐—ถ๐—ฒ๐˜ƒ๐—ฎ๐—น-๐—”๐˜‚๐—ด๐—บ๐—ฒ๐—ป๐˜๐—ฒ๐—ฑ ๐—š๐—ฒ๐—ป๐—ฒ๐—ฟ๐—ฎ๐˜๐—ถ๐—ผ๐—ป) โ€ข ๐—ฆ๐˜๐—ฒ๐—ฝ 1: ๐—จ๐˜€๐—ฒ๐—ฟ ๐—ฎ๐˜€๐—ธ๐˜€ ๐—ฎ ๐—พ๐˜‚๐—ฒ๐˜€๐˜๐—ถ๐—ผ๐—ป. Example: โ€œ๐˜ž๐˜ฉ๐˜ข๐˜ต ๐˜ช๐˜ด ๐˜ต๐˜ฉ๐˜ฆ ๐˜ค๐˜ข๐˜ฑ๐˜ช๏ฟฝ

See More
4 Replies
34
41
4
Image Description

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 2m

Most people building AI systems miss these crucial steps. I've explained the architecture in simple way below. ๐—ฆ๐˜๐—ฒ๐—ฝ 1 โ€“ ๐——๐—ฎ๐˜๐—ฎ ๐—œ๐—ป๐—ด๐—ฒ๐˜€๐˜๐—ถ๐—ผ๐—ป & ๐—ฃ๐—ฟ๐—ผ๐—ฐ๐—ฒ๐˜€๐˜€๐—ถ๐—ป๐—ด (๐—œ๐—ป๐—ด๐—ฒ๐˜€๐˜ ๐—Ÿ๐—ฎ๐˜†๐—ฒ๐—ฟ) โ€ข This step brings data into your AI system. โ€ข

See More
1 Reply
3
5
Image Description

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 6m

Simple breakdown of different elements in AI systems today. Extremely easy to understand. Hereโ€™s more: ๐—Ÿ๐—Ÿ๐— ๐˜€ โ†’ Great at text generation and reasoning, but limited to training data. ๐—ฅ๐—”๐—š (๐—ฅ๐—ฒ๐˜๐—ฟ๐—ถ๐—ฒ๐˜ƒ๐—ฎ๐—น-๐—”๐˜‚๐—ด๐—บ๐—ฒ๐—ป๐˜๐—ฒ๐—ฑ ๐—š๐—ฒ๐—ป๐—ฒ๐—ฟ๐—ฎ๐˜๐—ถ๐—ผ

See More
Reply
1
9
1

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 1m

How should you build AI Agents in 2026? I've explained each step with my learnings below. ๐—ฆ๐˜๐—ฒ๐—ฝ 1 โ€“ ๐—š๐—ถ๐˜ƒ๐—ฒ ๐—ฎ ๐—–๐—น๐—ฒ๐—ฎ๐—ฟ ๐—ง๐—ฎ๐˜€๐—ธ โ€ข Define one focused responsibility for the agent. โ€ข Set clear objectives, constraints, and expected outputs. ๐—Ÿ๏ฟฝ

See More
Reply
1
Image Description
Image Description

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 3m

Steps to building Agentic AI systems from scratch. I've given a simple detailed explanation below. ๐—ฆ๐˜๐—ฒ๐—ฝ 1 โ€“ ๐—š๐—ฃ๐—จ/๐—–๐—ฃ๐—จ ๐—ฃ๐—ฟ๐—ผ๐˜ƒ๐—ถ๐—ฑ๐—ฒ๐—ฟ (Compute Layer) โ€ข This is the engine that powers all AI computations. โ€ข You rent computing power to run y

See More
1 Reply
32
20
2

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 3m

Steps to building real-world AI systems. I've given a simple detailed explanation below. ๐—ฆ๐˜๐—ฒ๐—ฝ 1 โ€“ ๐——๐—ฒ๐—ฝ๐—น๐—ผ๐˜†๐—บ๐—ฒ๐—ป๐˜ & ๐—–๐—ผ๐—บ๐—ฝ๐˜‚๐˜๐—ฒ ๐—Ÿ๐—ฎ๐˜†๐—ฒ๐—ฟ โ€ข This is where all the ๐—ต๐—ฒ๐—ฎ๐˜ƒ๐˜† ๐—ฝ๐—ฟ๐—ผ๐—ฐ๐—ฒ๐˜€๐˜€๐—ถ๐—ป๐—ด ๐—ต๐—ฎ๐—ฝ๐—ฝ๐—ฒ๐—ป๐˜€. โ€ข It provides the ๐—ต๐—ฎ๐—ฟ๏ฟฝ

See More
Reply
1
1

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