
عنوان:
Prompt Engineering for LLMs
نویسنده:
John Berryman, Albert Ziegler
انتشارات:
O’Reilly Media
تاریخ انتشار
2024
حجم:
12.1MB
معرفی کتاب: " مهندسی پرامپت برای مدلهای زبانی بزرگ: هنر و علم ساخت برنامههای مبتنی بر LLM "
مدلهای زبانی بزرگ (LLMs) در حال متحول کردن جهان هستند و نوید خودکارسازی وظایف و حل مسائل پیچیده را میدهند. نسل جدیدی از نرمافزارها از این مدلها بهعنوان بلوکهای سازنده استفاده میکنند تا در هر حوزهای ظرفیتهای جدیدی را آزاد کنند؛ اما دسترسی قابلاعتماد به این قابلیتها نیازمند مهارتهای جدید است.
این کتاب، هنر و علم مهندسی پرامپت (Prompt Engineering) را به شما آموزش میدهد — کلیدی برای آزادسازی توان واقعی مدلهای زبانی بزرگ.
جان بریمن (John Berryman) و آلبرت زیگلر (Albert Ziegler)، از متخصصان این حوزه، به شما میآموزند چگونه بهطور مؤثر با هوش مصنوعی ارتباط برقرار کنید و ایدههای خود را به زبانی قابلفهم برای مدلهای زبانی تبدیل نمایید.
آنچه در این کتاب میآموزید:
- ✓ درک معماری مدلهای زبانی بزرگ و نحوه تعامل بهینه با آنها
- ✓ طراحی یک استراتژی کامل برای ساخت پرامپت مناسب یک اپلیکیشن
- ✓ جمعآوری، اولویتبندی و ارائه مؤثر عناصر زمینهای برای تولید پرامپت دقیق
-
✓ تسلط بر تکنیکهای پیشرفته پرامپتسازی مانند:
- ✓ یادگیری با نمونه کم (Few-shot learning)
- ✓ پرامپتسازی زنجیرهای تفکر (Chain-of-thought prompting)
- ✓ بازیابی-افزودهسازی دانش (RAG)
فهرست مطالب
- Copyright
- Table of Contents
- Preface
- Part I. Foundations
- Chapter 1. Introduction to Prompt Engineering
- LLMs Are Magic
- Language Models: How Did We Get Here?
- Prompt Engineering
- Conclusion
- Chapter 2. Understanding LLMs
- What Are LLMs?
- How LLMs See the World
- One Token at a Time
- Temperature and Probabilities
- The Transformer Architecture
- Conclusion
- Chapter 3. Moving to Chat
- Reinforcement Learning from Human Feedback
- Moving from Instruct to Chat
- The Changing API
- Prompt Engineering as Playwriting
- Conclusion
- Chapter 4. Designing LLM Applications
- The Anatomy of the Loop
- Zooming In to the Feedforward Pass
- Evaluating LLM Application Quality
- Conclusion
- Part II. Core Techniques
- Chapter 5. Prompt Content
- Sources of Content
- Static Content
- Dynamic Content
- Conclusion
- Chapter 6. Assembling the Prompt
- Anatomy of the Ideal Prompt
- What Kind of Document?
- Formatting Snippets
- Elastic Snippets
- Relationships Among Prompt Elements
- Putting It All Together
- Conclusion
- Chapter 7. Taming the Model
- Anatomy of the Ideal Completion
- Beyond the Text: Logprobs
- Choosing the Model
- Conclusion
- Part III. An Expert of the Craft
- Chapter 8. Conversational Agency
- Tool Usage
- Reasoning
- Context for Task-Based Interactions
- Building a Conversational Agent
- Conclusion
- Chapter 9. LLM Workflows
- Would a Conversational Agent Suffice?
- Basic LLM Workflows
- Advanced LLM Workflows
- Conclusion
- Chapter 10. Evaluating LLM Applications
- What Are We Even Testing?
- Offline Evaluation
- Online Evaluation
- Conclusion
- Chapter 11. Looking Ahead
- Multimodality
- Conclusion
- Index
- About the Authors
- Colophon
مشخصات
نام کتاب
Prompt Engineering for LLMs
نویسنده
John Berryman, Albert Ziegler
انتشارات
O’Reilly Media
تاریخ انتشار
2024
ISBN
9781098156152
تعداد صفحات
282
زبان
انگلیسی
فرمت
حجم
12.1MB
موضوع
Cybernetics:Artificial Intelligence