3

अध्याय तीन

Context
Engineering

AI भूलता नहीं — उसने याद किया
ही नहीं था शुरू से।

हर बार जब तुम AI को message भेजते हो, वो तुम्हारी पूरी conversation शुरू से पढ़ता है — हर message जो तुमने भेजा, हर जवाब जो उसने दिया — reply generate करता है, और फिर सब भूल जाता है। अगली बारी, वही दोबारा। पूरी transcript फिर से feed होती है। ये दुनिया का सबसे मेहनती लेकिन भुलक्कड़ reader है: हर बार पूरी तरह thorough, लेकिन हर turn zero से शुरू।

Window की हद है

वो transcript जो AI हर turn पर दोबारा पढ़ता है? वो एक चीज़ के अंदर रहती है जिसे context window कहते हैं — जो tokens में मापा जाता है (मोटे तौर पर हर token एक शब्द का तीन-चौथाई)। Claude की window लगभग 200,000 tokens की है — यानी 500 pages की किताब। बहुत लगता है, लेकिन तुम्हारा हर message, हर response, और हर hidden system instruction सब एक ही budget से खाता है। ये तुम्हारी सोच से ज़्यादा तेज़ी से भरता है।

जब budget ख़त्म हो जाता है, सबसे पुराने messages किनारे से गिर जाते हैं। तुमने message तीन में अपनी dietary restrictions बताई थीं? Message पंद्रह तक AI शायद उन्हें देख ही न पाए। ये लापरवाही नहीं है — जो उसके सामने नहीं है, वो literally देख नहीं सकता। AI बस उतना ही अच्छा है जितनी information अभी उसकी window में है।

इसीलिए सबसे अच्छे AI users सिर्फ़ अच्छे prompts नहीं लिखते — वो manage करते हैं कि window में क्या जाए। बीच-बीच में summarize करो ताकि important details दिखती रहें। ज़रूरी बातें पहले रखो। Topic बदले तो fresh start करो। Structured formats use करो ताकि AI तुम्हारा context efficiently parse कर सके। Context engineering ही नया prompt engineering है।

Key insight

एक बढ़िया prompt लिखना step one है। ये decide करना कि AI के सामने कौन सी information रखनी है — और कैसे structure करनी है — असली leverage यहीं है। दुनिया का सबसे अच्छा prompt भी fail हो जाता है अगर context ग़लत है।

Context window को भरते, overflow होते, और भूलते हुए देखो — real time में।

The Context Window

Type messages and watch the window fill up

Context Window
System13 tok

You are a helpful, harmless, and honest assistant.

AI SEES THIS

Empty — type a message below

Visible: 13 tokens
Your Messages

Start typing messages below. Watch the context window fill up on the left. After a few messages, the oldest ones will blow away — that's the AI "forgetting."

Key insight: The system prompt stays pinned at the top. Everything else competes for space. Once the window fills up, early messages vanish from the AI's view.

Context Manage करने की Strategies

अब जब तुम window समझ गए हो, तो सीखो इसे pro की तरह manage करना। ये वो techniques हैं जो "AI use करने वालों" और "AI से extraordinary results निकालने वालों" को अलग करती हैं।

1

बीच-बीच में summarize करो

हर 5-10 messages के बाद, AI से कहो कि key decisions और details का एक छोटा recap लिखे। फिर वो summary अपने अगले message में paste करो। इससे context "reset" हो जाता है और सबसे important information सामने आ जाती है।

2

ज़रूरी बातें पहले रखो

सबसे critical information अपने message की शुरुआत में रखो, अंत में दबा कर नहीं। AI शुरू और आख़िर पर ज़्यादा ध्यान देता है — बीच का हिस्सा खो सकता है, ख़ासकर लंबे prompts में।

3

सोच-समझकर fresh start करो

Topic काफ़ी बदल जाए तो नई conversation शुरू करने से मत डरो। पूरी history नहीं, बस जो decide हुआ उसकी summary ले जाओ। Clean context अक्सर cluttered context से बेहतर होता है।

4

साफ़ बताओ क्या याद रखना है

"Important: user vegetarian है। ये मत भूलना।" सुनने में funny लगता है, लेकिन काम करता है। ऐसे explicit reminders anchors की तरह काम करते हैं जिन्हें AI ज़्यादा weight देता है।

5

Structured formats use करो

Bulleted lists, headers, और clear labels AI को तुम्हारा context ज़्यादा efficiently parse करने में मदद करते हैं। एक well-organized prompt prose की दीवार के मुक़ाबले अपनी token count से दोगुना काम का होता है।

The Forgetting Experiment

Each strategy fixes a different problem

You've chatted about a Tokyo trip for 15 messages. You mentioned being vegetarian (msg 4), planned Hakone + Kamakura day trips (msg 8), set a $3K budget (msg 5), and briefly considered Osaka (msg 11, then dropped it). Now you ask:

"Give me my day-by-day itinerary."

Remembers your planned day tripsVegetarian diet gets priorityRemoves the "maybe Osaka?" confusionBudget is firm, not vagueOutput becomes a usable day-by-day plan
What the AI sees
...15 messages about Tokyo trip planning...
"Give me my day-by-day itinerary."

No strategies applied — the AI only sees recent messages. Key details from earlier have scrolled away.

AI Response5 problems
Share this course
अब तुम्हें whiteboard दिखता है। तुम window के किनारे महसूस करते हो। ये AI के साथ तुम्हारी हर conversation बदल देता है।

तुमने fundamentals सीख लिए — prompting, पूछना, और context। अगला: तुम्हारे power prompts का cheat sheet जो तुम साथ ले जा सको।

Vibe Check

New tool unlocked!