Prompting

Prompting से जुड़े अध्याय और लेख।

विकी

Agents aur tool calling: function calling se ReAct workflows tak

Agent loop ke andar agla step khud decide karta hai; reliability loop ke bahar ke code par nirbhar hai. Yeh page Qwen3-4B se controlled tool-calling loop likhta hai, 12 scenarios par guardrails naapta hai, aur prompt injection, MCP aur pass^k samjhata hai।

मध्यम पढ़ने का समय: 50 मिनट

Agent context engineering aur long-term memory: window, versions, state

Context engineering task aur token budget ke hisaab se instructions, tool history aur evidence assemble karta hai; long-term memory confirmation, versions aur deletion rules se cross-session preferences manage karta hai।

मध्यम पढ़ने का समय: 10 मिनट

RAG system banane ka hands-on guide

Cleaning, chunking, dense + BM25 hybrid retrieval, RRF fusion, cross-encoder reranking se lekar context assembly aur evaluation tak - ek runnable chhota corpus se RAG khadi karein, aur har stage ke debug metrics pakdein।

मध्यम पढ़ने का समय: 37 मिनट

Prompt engineering: spec se message tak

Prompt ko model ka task interface samajh kar design karein: pehle task spec, phir system, examples aur context layers, eval set se format vs judgment errors alag, aur data se decide karein few-shot, CoT, structured output layak hain ya nahi।

मध्यम पढ़ने का समय: 40 मिनट

Structured output aur function calling: JSON mode se constrained decoding tak

Program se model output reliably use karane ke liye: prompt agreement, JSON mode, constrained decoding aur validation + retry. Yeh page vocabulary mask se format guarantee, function calling ke round-trips, aur format constraints ka reasoning par asar batata hai।

मध्यम पढ़ने का समय: 26 मिनट

लेख

ReAct: Treating Thought as an Action So a Language Model Can Reason and Act in One Trace

ReAct भाषा मॉडल को 'सोच' को भी एक क्रिया बना देता है: सोच, क्रिया, अवलोकन की बारी-बारी ट्रेस में तर्क करते हुए search व lookup बुलाता है — केवल 1 से 6 examples, पैरामीटर नहीं बदले। यह लेख paper की तालिकाएँ पुनर्गणना करता है और नकली विकी पर Qwen3-4B से चार prompts तुलना करता है।

शोधपत्र ICLR 2023 2022

Chain-of-thought prompting: exemplars with intermediate steps let large models solve multi-step problems

CoT प्रॉम्प्टिंग few-shot उदाहरणों में प्रश्न से उत्तर के बीच के तर्क कदम लिखती है, जिससे भाषा मॉडल कदम-दर-कदम तर्क करके उत्तर देता है; PaLM 540B केवल 8 उदाहरणों से GSM8K पर 17.9% से 56.9% पहुँचा। यह लेख तालिकाएँ पुनर्गणना करता है और तीन Qwen2.5 मॉडलों पर सीधा उत्तर, बिंदु-भराई और CoT तुलना करता है।

शोधपत्र NeurIPS 2022 2022

विषय