Prompt और Context Engineering

शब्दों से आगे बढ़ें: तय करें मॉडल क्या देखे, कितना, किस क्रम में और किस संरचना में। Token budgets, retrieval packing, compression, memory, caching, संरचित आउटपुट और अविश्वसनीय सामग्री, हर snippet चलाकर।

कोर्स शुरू करें →

आप क्या सीखेंगे

  • Prompt लिखने और मॉडल को दिखने वाले पूरे context को engineer करने का अंतर समझा सकेंगे।
  • Context window को निर्देशों, उदाहरणों, history, दस्तावेज़ों और उत्तर के बीच बाँट सकेंगे।
  • Retrieved सामग्री को चुन, de-duplicate, संक्षिप्त और क्रमबद्ध कर सकेंगे ताकि सबसे उपयोगी तथ्य फ़िट हों और उभरें।
  • Multi-turn और agent systems में बातचीत history, दीर्घकालिक memory और बड़े tool outputs सँभाल सकेंगे।
  • Prompts को caching, संरचित आउटपुट और अविश्वसनीय सामग्री के प्रतिरोध के लिए संरचित कर सकेंगे।
  • अनुमान के बजाय ablations से context रणनीतियों का मूल्यांकन कर सकेंगे।

पाठ्यक्रम

Prompts से Context तक

  1. Context Engineering का अर्थ
  2. Tokens और Context Window
  3. Model Request की संरचना

Window का Budget

  1. Token Budget का आवंटन
  2. लंबा Context हमेशा बेहतर क्यों नहीं
  3. आउटपुट आरक्षित और नियंत्रित करना

Selecting What Goes In

  1. Packing Retrieved Chunks Into a Budget
  2. Removing Near-Duplicates
  3. Compressing Content
  4. Selecting Few-Shot Examples per Request

Ordering and Structure

  1. Ordering Content in a Long Context
  2. Delimiters and Templates
  3. Instruction Placement and Repetition

History, Memory and Tool Output

  1. Managing Conversation History
  2. Long-Term Memory: Store and Retrieve
  3. Keeping Tool Output Under Control

Caching, Output Contracts and Versioning

  1. Structuring Prompts for Caching
  2. Structured Output as a Contract
  3. Versioning Prompts and Context Pipelines

Untrusted Content, Privacy and Grounding

  1. Prompt Injection Through Context
  2. Data Minimisation in Context
  3. Grounding, Citations and Saying Not Found

Evaluating and Applying Context Strategies

  1. Evaluating Context Changes With Ablations
  2. Case Study: A Support Assistant Over Policy Documents
  3. A Context Engineering Checklist