Back

Rahul Agarwal

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

Prompt vs Context vs RAG. I've explained it in a simple way below. 1. ๐—ฃ๐—ฟ๐—ผ๐—บ๐—ฝ๐˜ ๐—˜๐—ป๐—ด๐—ถ๐—ป๐—ฒ๐—ฒ๐—ฟ๐—ถ๐—ป๐—ด Prompt Engineering is about ๐—ฐ๐—น๐—ฒ๐—ฎ๐—ฟ ๐—ถ๐—ป๐˜€๐˜๐—ฟ๐˜‚๐—ฐ๐˜๐—ถ๐—ผ๐—ป๐˜€, not magic words. โ€ข ๐——๐—ฒ๐—ณ๐—ถ๐—ป๐—ฒ ๐˜๐—ต๐—ฒ ๐—ณ๐—ถ๐—ป๐—ฎ๐—น ๐—ด๐—ผ๐—ฎ๐—น: What exactly do you want the AI to produce? โ€ข ๐—”๐˜€๐˜€๐—ถ๐—ด๐—ป ๐—ฎ ๐—ฐ๐—น๐—ฒ๐—ฎ๐—ฟ ๐—ฟ๐—ผ๐—น๐—ฒ: Example: โ€œAct as a legal expertโ€. โ€ข ๐—š๐—ถ๐˜ƒ๐—ฒ ๐—ฒ๐˜…๐—ฎ๐—บ๐—ฝ๐—น๐—ฒ๐˜€: Show the AI what a good answer looks like โ€ข ๐—จ๐˜€๐—ฒ ๐—ณ๐—ฒ๐˜„-๐˜€๐—ต๐—ผ๐˜ ๐˜€๐—ฎ๐—บ๐—ฝ๐—น๐—ฒ๐˜€: Provide multiple examples so the pattern is clear โ€ข ๐—ฆ๐—ฒ๐˜ ๐—ฐ๐—ผ๐—ป๐˜€๐˜๐—ฟ๐—ฎ๐—ถ๐—ป๐˜๐˜€: Limit length, tone, or structure โ€ข ๐—›๐—ฎ๐—ป๐—ฑ๐—น๐—ฒ ๐—ฒ๐—ฑ๐—ด๐—ฒ ๐—ฐ๐—ฎ๐˜€๐—ฒ๐˜€: Tell the AI what to do if data is missing or unclear โ€ข ๐——๐—ฒ๐—ณ๐—ถ๐—ป๐—ฒ ๐—ฟ๐—ฒ๐˜€๐—ฝ๐—ผ๐—ป๐˜€๐—ฒ ๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐˜: JSON, table, bullets, etc. โ€ข ๐—”๐—ฝ๐—ฝ๐—น๐˜† ๐—ด๐˜‚๐—ฎ๐—ฟ๐—ฑ๐—ฟ๐—ฎ๐—ถ๐—น๐˜€: Explicitly state what the AI should NOT do โ€ข ๐—ฆ๐˜๐—ฎ๐˜๐—ฒ ๐—ฎ๐˜€๐˜€๐˜‚๐—บ๐—ฝ๐˜๐—ถ๐—ผ๐—ป๐˜€: Clarify what the AI can assume โ€ข ๐—ง๐—ฒ๐˜€๐˜ ๐—บ๐˜‚๐—น๐˜๐—ถ๐—ฝ๐—น๐—ฒ ๐—ฝ๐—ฟ๐—ผ๐—บ๐—ฝ๐˜๐˜€: Try variations to get the best output _____________ 2. ๐—–๐—ผ๐—ป๐˜๐—ฒ๐˜…๐˜ ๐—˜๐—ป๐—ด๐—ถ๐—ป๐—ฒ๐—ฒ๐—ฟ๐—ถ๐—ป๐—ด Context Engineering is about ๐—ณ๐—ฒ๐—ฒ๐—ฑ๐—ถ๐—ป๐—ด ๐˜๐—ต๐—ฒ ๐—ฟ๐—ถ๐—ด๐—ต๐˜ ๐—ฏ๐—ฎ๐—ฐ๐—ธ๐—ด๐—ฟ๐—ผ๐˜‚๐—ป๐—ฑ ๐—ฑ๐—ฎ๐˜๐—ฎ, not everything. โ€ข ๐——๐—ฒ๐—ณ๐—ถ๐—ป๐—ฒ ๐—ฐ๐—ผ๐—ป๐˜๐—ฒ๐˜…๐˜ ๐—ป๐—ฒ๐—ฒ๐—ฑ๐˜€: Decide what information is required to answer correctly โ€ข ๐—–๐—ผ๐—น๐—น๐—ฒ๐—ฐ๐˜ ๐—ฑ๐—ฎ๐˜๐—ฎ ๐˜€๐—ผ๐˜‚๐—ฟ๐—ฐ๐—ฒ๐˜€: Docs, notes, chat history, APIs, user data โ€ข ๐—ฆ๐—ฒ๐—น๐—ฒ๐—ฐ๐˜ ๐˜‚๐˜€๐—ฒ๐—ณ๐˜‚๐—น ๐˜€๐—ถ๐—ด๐—ป๐—ฎ๐—น๐˜€: Keep only what helps the task โ€ข ๐—ฅ๐—ฒ๐—ณ๐—ถ๐—ป๐—ฒ ๐—ฟ๐—ฒ๐—น๐—ฒ๐˜ƒ๐—ฎ๐—ป๐—ฐ๐—ฒ: Remove irrelevant information โ€ข ๐—ž๐—ฒ๐—ฒ๐—ฝ ๐—ธ๐—ฒ๐˜† ๐—ฝ๐—ผ๐—ถ๐—ป๐˜๐˜€: Focus on essential facts โ€ข ๐—ข๐—ฟ๐—ด๐—ฎ๐—ป๐—ถ๐˜‡๐—ฒ ๐—ฝ๐—ฎ๐˜†๐—น๐—ผ๐—ฎ๐—ฑ: Structure context clearly โ€ข ๐—ฆ๐—ต๐—ฟ๐—ถ๐—ป๐—ธ ๐—ฐ๐—ผ๐—ป๐˜๐—ฒ๐˜…๐˜: Compress data to fit model limits โ€ข ๐—ฆ๐˜†๐˜€๐˜๐—ฒ๐—บ-๐—น๐—ฒ๐˜ƒ๐—ฒ๐—น ๐—ฐ๐—ผ๐—ป๐˜๐—ฒ๐˜…๐˜: Global rules like tone, behavior, style โ€ข ๐—ง๐—ฎ๐˜€๐—ธ-๐˜€๐—ฝ๐—ฒ๐—ฐ๐—ถ๐—ณ๐—ถ๐—ฐ ๐—ฐ๐—ผ๐—ป๐˜๐—ฒ๐˜…๐˜: Information needed only for this task โ€ข ๐—ง๐—ฟ๐—ฎ๐—ฐ๐—ธ ๐—ฐ๐—ผ๐—ป๐˜๐—ฒ๐˜…๐˜ ๐—ผ๐˜ƒ๐—ฒ๐—ฟ ๐˜๐—ถ๐—บ๐—ฒ: Maintain memory across conversations _____________ 3. ๐—ฅ๐—”๐—š RAG is used to bring ๐—ฒ๐˜…๐˜๐—ฒ๐—ฟ๐—ป๐—ฎ๐—น ๐—ธ๐—ป๐—ผ๐˜„๐—น๐—ฒ๐—ฑ๐—ด๐—ฒ into AI responses. โ€ข ๐—Ÿ๐—ผ๐—ฎ๐—ฑ ๐—ฑ๐—ผ๐—ฐ๐˜‚๐—บ๐—ฒ๐—ป๐˜๐˜€: PDFs, websites, internal docs, databases โ€ข ๐—ฆ๐—ฝ๐—น๐—ถ๐˜ ๐—ถ๐—ป๐˜๐—ผ ๐—ฐ๐—ต๐˜‚๐—ป๐—ธ๐˜€: Break large text into small pieces โ€ข ๐—š๐—ฒ๐—ป๐—ฒ๐—ฟ๐—ฎ๐˜๐—ฒ ๐—ฒ๐—บ๐—ฏ๐—ฒ๐—ฑ๐—ฑ๐—ถ๐—ป๐—ด๐˜€: Convert chunks into vectors (meaning-based numbers) โ€ข ๐—ฆ๐—ฎ๐˜ƒ๐—ฒ ๐˜ƒ๐—ฒ๐—ฐ๐˜๐—ผ๐—ฟ๐˜€: Store them in a vector database โ€ข ๐—•๐˜‚๐—ถ๐—น๐—ฑ ๐˜€๐—ฒ๐—ฎ๐—ฟ๐—ฐ๐—ต ๐—ถ๐—ป๐—ฑ๐—ฒ๐˜…๐—ฒ๐˜€: Make data searchable by meaning โ€ข ๐—ฅ๐—ฒ๐—ฐ๐—ฒ๐—ถ๐˜ƒ๐—ฒ ๐˜‚๐˜€๐—ฒ๐—ฟ ๐—พ๐˜‚๐—ฒ๐—ฟ๐˜†: User asks a question โ€ข ๐—ฅ๐—ฒ๐˜๐—ฟ๐—ถ๐—ฒ๐˜ƒ๐—ฒ ๐—ฟ๐—ฒ๐—น๐—ฒ๐˜ƒ๐—ฎ๐—ป๐˜ ๐—ฝ๐—ฎ๐˜€๐˜€๐—ฎ๐—ด๐—ฒ๐˜€: Find the closest matching chunks โ€ข ๐—”๐—ฝ๐—ฝ๐—น๐˜† ๐—บ๐—ฒ๐˜๐—ฎ๐—ฑ๐—ฎ๐˜๐—ฎ ๐—ณ๐—ถ๐—น๐˜๐—ฒ๐—ฟ๐˜€: Narrow results to relevant data โ€ข ๐—š๐—ฒ๐—ป๐—ฒ๐—ฟ๐—ฎ๐˜๐—ฒ ๐—ฎ๐—ป๐˜€๐˜„๐—ฒ๐—ฟ: LLM uses retrieved context to respond โ€ข ๐—˜๐˜ƒ๐—ฎ๐—น๐˜‚๐—ฎ๐˜๐—ฒ ๐—พ๐˜‚๐—ฎ๐—น๐—ถ๐˜๐˜†: Measure relevance and usefulness ๐—ช๐—ต๐˜† ๐—ง๐—ต๐—ถ๐˜€ ๐— ๐—ฎ๐˜๐˜๐—ฒ๐—ฟ๐˜€? <> ๐—ฃ๐—ฟ๐—ผ๐—บ๐—ฝ๐˜ ๐—˜๐—ป๐—ด๐—ถ๐—ป๐—ฒ๐—ฒ๐—ฟ๐—ถ๐—ป๐—ด controls how you ask <> ๐—–๐—ผ๐—ป๐˜๐—ฒ๐˜…๐˜ ๐—˜๐—ป๐—ด๐—ถ๐—ป๐—ฒ๐—ฒ๐—ฟ๐—ถ๐—ป๐—ด controls what the AI knows <> ๐—ฅ๐—”๐—š controls where the knowledge comes from โœ… Repost for others so they can understand these key differences.

Reply
1

More like this

Recommendations from Medial

Rahul Agarwal

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

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 ge

See More
Reply
1
7

Rahul Agarwal

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

Fine-tune vs Prompt vs Context Engineering. Simple step-by-step breakdown for each approach. ๐—™๐—ถ๐—ป๐—ฒ-๐—ง๐˜‚๐—ป๐—ถ๐—ป๐—ด (๐— ๐—ผ๐—ฑ๐—ฒ๐—น-๐—Ÿ๐—ฒ๐˜ƒ๐—ฒ๐—น ๐—–๐˜‚๐˜€๐˜๐—ผ๐—บ๐—ถ๐˜‡๐—ฎ๐˜๐—ถ๐—ผ๐—ป) ๐—™๐—น๐—ผ๐˜„: 1. Collect Data โ†’ Gather domain-specific info (e.g., legal docs). 2. Sta

See More
Reply
2
13
Image Description

Pranav padmanabhan

AI Data Scientistย โ€ขย 4m

AI browsers are evolving fast local agents, workflow automation, context-aware search. But as they gain deeper access (tabs, files, cookies, workspace), the attack surface expands. Privacy isnโ€™t optional anymore. We need stronger guardrails: โ€ข Local

See More
1 Reply
7

Varun Bhambhani

ย โ€ขย 

Medialย โ€ขย 1m

Google's Gemini app now includes Personal Intelligence, a feature that makes the assistant more proactive and personalized. By using user permission to securely access data from apps such as Gmail, Google Drive, Maps, and Photos, Gemini can offer rel

See More
Reply

Ambar Bhusari

UX Designer for User...ย โ€ขย 1y

Medial Idea: What if one of the premium feature of Medial ia an Ai Idea Discussion Buddy, finetuned on open startup education data and regional context. Crude Thoughts: There could be another one for legal policies like policy-buddy, for marketing l

See More
Reply
1
7

Rahul Agarwal

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

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

Yogesh Jamdade

.....ย โ€ขย 11m

how to connect ai models with your own softwares or tools? The answer is mcp servers The Model Context Protocol (MCP) is an open standard that enables AI models to securely access data and tools through standardized servers. MCP servers facilitate

See More
1 Reply
2

Sumit Singh

โ€œNot here to be like...ย โ€ขย 4m

๐Ÿ’ฅ The Future of SEO Isnโ€™t Just Search โ€” Itโ€™s Smart Search. SEO is no longer just about keywords; it's about understanding machines, user behavior, and how AI connects both. We're in an era where AI defines visibility. At Geoseolab, we merge Artifi

See More
Reply
1
11

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