- عنوان کتاب: Context Engineering with DSPy Self-Optimizing Prompt Pipelines for Building Reliable AI Agents
- نویسنده: Mike Taylor
- حوزه: عاملهای هوش مصنوعی
- سال انتشار: 2026
- تعداد صفحه: 477
- زبان اصلی: انگلیسی
- نوع فایل: pdf
- حجم فایل: 3.42 مگابایت
کار با مدلهای زبانی بزرگ (LLM) میتواند دشوار باشد – آنها برای انجام کار به اطلاعات کافی نیاز دارند، اما اطلاعات زیاد هزینه زیادی دارد و منجر به پوسیدگی زمینه (نحوه کاهش عملکرد با افزایش طول ورودی) میشود. هوش مصنوعی زمانی بهترین عملکرد را دارد که اطلاعات صحیح، در قالب مناسب و در زمان مناسب به آنها بدهید. همانطور که توبی لوتکه، بنیانگذار و مدیرعامل Shopify، میگوید: “من واقعاً اصطلاح مهندسی زمینه را به مهندسی سریع ترجیح میدهم. این اصطلاح مهارت اصلی را بهتر توصیف میکند: هنر ارائه تمام زمینهها برای اینکه وظیفه به طور قابل قبولی توسط LLM قابل حل باشد.” با بهبود مدلها در استدلال، دستورالعملهای خاص نسبت به ورودیهای موجود برای استدلال مدل، اهمیت کمتری پیدا کردهاند. حل مهندسی زمینه به چالش اصلی توسعه هوش مصنوعی مدرن تبدیل شده است. در مورد مرگ مهندسی سریع بسیار اغراق شده است، اما آندری کارپاتی، مدیر سابق هوش مصنوعی در تسلا، رأی خود را داده است: “۱+ برای مهندسی زمینه به ‘مهندسی سریع’.” زمینه را درست دریافت کنید، از هوش مصنوعی برای بازنویسی دستورالعملهای خود استفاده کنید و برنامه شما قابل اعتماد، مقیاسپذیر و مفید میشود. اگر اشتباه کنید، توکنها را میسوزانید، دقت را از دست میدهید یا دچار توهمات مداوم میشوید. DSPy چارچوب قطعی مهندسی زمینه است که تمام لولهکشی، مقیاسبندی و بهینهسازی برنامههای هوش مصنوعی شما را در بین ارائهدهندگان مدل انجام میدهد و به شما این امکان را میدهد که روی آنچه بیشترین اهمیت را دارد – جریان، مشخصات و ارزیابی سیستم – تمرکز کنید. با دهها هزار ستاره GitHub و میلیونها دانلود ماهانه، این یک کلاسیک فرقهای در بین مهندسان هوش مصنوعی (از جمله Lütke) است که با نحو ناآشنای آن روبرو شدهاند. DSPy به شما امکان میدهد آنچه سیستم شما باید انجام دهد – ورودیها و خروجیها – را در اجزای ماژولار جفت شده با مجموعه دادهها و معیارهای ارزیابی تعریف کنید. برخلاف چارچوبهای هوش مصنوعی که از دیرباز بیش از حد مورد توجه قرار گرفتهاند، DSPy به متخصصان خود با بهینهسازیهای سریع در سطح جهانی پاداش میدهد که به طور قابل اعتمادی دستاوردهای عملکردی عظیمی را ارائه میدهند: -از ۲۴٪ تا ۵۱٪ موفقیت در پاسخ به سوالات با جستجو -بهبود ۱۰٪ در کیفیت بازیابی اسناد -از ۶۶٪ تا ۸۷٪ دقت در وظایف طبقهبندی -بهبود از ۱۰٪ تا ۱۰۰٪+ در کار مشاورهای خودم به عنوان یک مهندس هوش مصنوعی در هسته خود، DSPy سه چیزی را که هر تیم هوش مصنوعی به آن نیاز دارد، به شما ارائه میدهد: -برنامههای قابل حمل که در مدلها و ارائه دهندگان مختلف اجرا میشوند -ماژولهای قابل نگهداری که قابل ترکیب، قابل استفاده مجدد و به راحتی قابل اصلاح هستند -دستورالعملهای خود-بهبودی که از طریق ارزیابی، نه حدس و گمان، تکامل مییابند. مهندسی زمینه در حال حاضر آینده هوش مصنوعی را شکل میدهد و DSPy نحوه به کارگیری آن در عمل است. خود را از سر و کله زدن بیپایان با رشتههای سریع شکننده رها کنید، بنابراین میتوانید به جای آن بر حل مشکلات مهندسی واقعی تمرکز کنید.
Working with large language models (LLMs) can be tricky — they need enough information to do the job, but too much information costs a lot and leads to context rot (how performance degrades as input length increases). AIs work best when you give them the right information, in the right format, at the right time. As Tobi Lütke, founder and CEO of Shopify, puts it: “I really like the term context engineering over prompt engineering. It describes the core skill better: the art of providing all the context for the task to be plausibly solvable by the LLM.” As models have gotten better at reasoning, the specific prompts have become relatively less important than the inputs available for the model to reason through. Solving context engineering has become the central challenge of modern AI development. The death of prompt engineering has been greatly exaggerated, but Andrej Karpathy, former Director of AI at Tesla, has cast his vote: “+1 for context engineering over ‘prompt engineering.'” Get the context right, use AI to rewrite its own instructions, and your application becomes reliable, scalable, and useful. Get it wrong and you burn tokens, lose accuracy, or suffer from constant hallucinations. DSPy is the definitive context engineering framework, handling all the plumbing, scaling, and optimization of your AI programs across model providers, leaving you free to focus on what matters most — the flow, specification, and evaluation of the system. With tens of thousands of GitHub stars and millions of monthly downloads, it is a cult classic among AI engineers (including Lütke) who braved its unfamiliar syntax. DSPy lets you define what your system should do — the inputs and outputs — in modular components paired with datasets and evaluation metrics. Unlike historically overhyped AI frameworks, DSPy rewards its practitioners with world-class prompt optimizers that reliably deliver massive performance gains: -From 24% to 51% success on question answering with search -A 10% improvement in document retrieval quality -From 66% to 87% accuracy on classification tasks -Improvements from 10% to 100%+ in my own consulting work as an AI engineer At its core, DSPy gives you three things every AI team needs: -Portable programs that run across different models and providers -Maintainable modules that are composable, reusable, and easily modified -Self-improving prompts that evolve through evaluation, not guesswork. Context engineering is already shaping the future of AI, and DSPy is how you put it into practice. Free yourself from endless tinkering with brittle prompt strings, so you can focus on solving real engineering problems instead.
این کتاب را میتوانید از لینک زیر بصورت رایگان دانلود کنید:
Download: Context Engineering





نظرات کاربران