Prompt Engineering (Tài liệu của Google về hướng dẫn prompt AI từ Cơ bản tới Nâng cao)
- 页数
- 68
- 格式
- 大小
- 6.5 MB
- 年份
- 2025
- Trường
- 浏览量
- 0
- 评论
- 0
- 下载次数
- 0
Tài liệu hướng dẫn về kỹ thuật prompt engineering cho mô hình Gemini của Google, bao gồm các phương pháp từ cơ bản đến nâng cao và các thực hành tốt nhất.
常见问题
此文档免费吗?
是的。“Prompt Engineering (Tài liệu của Google về hướng dẫn prompt AI từ Cơ bản tới Nâng cao)”是免费的 — 只需登录并点击“下载”即可获取原始文件。
这份文档有多少页?
该文档共有 68 页。您可以在下载前进行在线预览。
我可以在下载前预览吗?
是的。您可以通过在线阅读器直接在本页面预览此文档,然后再决定是否下载。
- 文档名称
- Prompt Engineering (Tài liệu của Google về hướng dẫn prompt AI từ Cơ bản tới Nâng cao)
- 学校 / 课程
- 作者(文档中)
- Lee Boonstra
- 内容
- Tài liệu hướng dẫn kỹ thuật Prompt Engineering, giải thích cách tạo prompt hiệu quả cho LLM. Nó bao gồm các kỹ thuật từ cơ bản đến nâng cao, prompt cho code, và các thực tiễn tốt nhất để tối ưu hóa kết quả.
- 目录
- Introduction
- Prompt engineering
- LLM output configuration
- Output length
- Sampling controls
- Temperature
- Top-K and top-P
- Putting it all together
- Prompting techniques
- General prompting / zero shot
- One-shot & few-shot
- System, contextual and role prompting
- System prompting
- Role prompting
- Contextual prompting
- Step-back prompting
- Chain of Thought (CoT)
- Self-consistency
- Tree of Thoughts (ToT)
- ReAct (reason & act)
- Automatic Prompt Engineering
- Code prompting
- Prompts for writing code
- Prompts for explaining code
- Prompts for translating code
- Prompts for debugging and reviewing code
- What about multimodal prompting?
- Best Practices
- Provide examples
- Design with simplicity
- Be specific about the output
- Use Instructions over Constraints
- Control the max token length
- Use variables in prompts
- Experiment with input formats and writing styles
- For few-shot prompting with classification tasks, mix up the classes
- Adapt to model updates
- Experiment with output formats
- JSON Repair
- Working with Schemas
- Experiment together with other prompt engineers
- CoT Best practices
- Document the various prompt attempts
- Summary
- Endnotes
- 页数
- 68 页
- 上传者
- Uni24h
正在生成预览...
描述
Prompt Engineering Author: Lee Boonstra Prompt Engineering Acknowledgements Content contributors Michael Sherman Yuan Cao Erick Armbrust Anant Nawalgaria Antonio Gulli Simone Cammel Curators and Editors Antonio Gulli Anant Nawalgaria Grace Mollison Technical Writer Joey Haymaker Designer Michael Lanning February 2025 2 Table of contents Introduction 6 Prompt engineering 7 LLM output configuration 8 Output length 8 Sampling controls 9 Temperature 9 Top-K and top-P 10 Putting it all together 11 Prompting techniques 13 General prompting / zero shot 13 One-shot & few-shot 15 System, contextual and role prompting 18 System prompting 19 Role prompting 21 Contextual prompting 23 Step-back prompting 25 Chain of Thought (CoT) 29 Self-consistency 32 Tree of Thoughts (ToT) 36 ReAct (reason & act) 37 Automatic Prompt Engineering 40 Code prompting 42 Prompts for writing code 42 Prompts for explaining code 44 Prompts for translating code 46 Prompts for debugging and reviewing code 48 What about multimodal prompting? 54 Best Practices 54 Provide examples 54 Design with simplicity 55 Be specific about the output 56 Use Instructions over Constraints 56 Control the max token length 58 Use variables in prompts 58 Experiment with input formats and writing styles 59 For few-shot prompting with classification tasks, mix up the classes 59 Adapt to model updates 60 Experiment with output formats 60 JSON Repair 61 Working with Schemas 62 Experiment together with other prompt engineers 63 CoT Best practices 64 Document the various prompt attempts 64 Summary 66 Endnotes 68 Prompt Engineering You don’t need to be a data scientist or a machine learning engineer – everyone can write a prompt. Introduction When thinking about a large language model input and output, a text prompt (sometimes accompanied by other modalities such as image prompts) is the input the
Prompt Engineering (Tài liệu của Google về hướng dẫn prompt AI từ Cơ bản tới Nâng cao)
Prompt Engineering Author: Lee Boonstra Prompt Engineering Acknowledgements Content contributors Michael Sherman Yuan Cao Erick Armbrust Anant Nawalgaria Antonio Gulli Simone Cammel Curators and Editors Antonio Gulli Anant Nawalgaria Grace Mollison Technical Writer Joey Haymaker Designer Michael Lanning February 2025 2 Table of contents Introduction 6 Prompt engineering 7 LLM output configuration 8 Output length 8 Sampling controls 9 Temperature 9 Top-K and top-P 10 Putting it all together 11 Prompting techniques 13 General prompting / zero shot 13 One-shot & few-shot 15 System, contextual and role prompting 18 System prompting 19 Role prompting 21 Contextual prompting 23 Step-back prompting 25 Chain of Thought (CoT) 29 Self-consistency 32 Tree of Thoughts (ToT) 36 ReAct (reason & act) 37 Automatic Prompt Engineering 40 Code prompting 42 Prompts for writing code 42 Prompts for explaining code 44 Prompts for translating code 46 Prompts for debugging and reviewing code 48 What about multimodal prompting? 54 Best Practices 54 Provide examples 54 Design with simplicity 55 Be specific about the output 56 Use Instructions over Constraints 56 Control the max token length 58 Use variables in prompts 58 Experiment with input formats and writing styles 59 For few-shot prompting with classification tasks, mix up the classes 59 Adapt to model updates 60 Experiment with output formats 60 JSON Repair 61 Working with Schemas 62 Experiment together with other prompt engineers 63 CoT Best practices 64 Document the various prompt attempts 64 Summary 66 Endnotes 68 Prompt Engineering You don’t need to be a data scientist or a machine learning engineer – everyone can write a prompt. Introduction When thinking about a large language model input and output, a text prompt (sometimes accompanied by other modalities such as image prompts) is the input the
阅读全文
- 文档名称
- Prompt Engineering (Tài liệu của Google về hướng dẫn prompt AI từ Cơ bản tới Nâng cao)
- 学校 / 课程
- 作者(文档中)
- Lee Boonstra
- 内容
- Tài liệu hướng dẫn kỹ thuật Prompt Engineering, giải thích cách tạo prompt hiệu quả cho LLM. Nó bao gồm các kỹ thuật từ cơ bản đến nâng cao, prompt cho code, và các thực tiễn tốt nhất để tối ưu hóa kết quả.
- 目录
- Introduction
- Prompt engineering
- LLM output configuration
- Output length
- Sampling controls
- Temperature
- Top-K and top-P
- Putting it all together
- Prompting techniques
- General prompting / zero shot
- One-shot & few-shot
- System, contextual and role prompting
- System prompting
- Role prompting
- Contextual prompting
- Step-back prompting
- Chain of Thought (CoT)
- Self-consistency
- Tree of Thoughts (ToT)
- ReAct (reason & act)
- Automatic Prompt Engineering
- Code prompting
- Prompts for writing code
- Prompts for explaining code
- Prompts for translating code
- Prompts for debugging and reviewing code
- What about multimodal prompting?
- Best Practices
- Provide examples
- Design with simplicity
- Be specific about the output
- Use Instructions over Constraints
- Control the max token length
- Use variables in prompts
- Experiment with input formats and writing styles
- For few-shot prompting with classification tasks, mix up the classes
- Adapt to model updates
- Experiment with output formats
- JSON Repair
- Working with Schemas
- Experiment together with other prompt engineers
- CoT Best practices
- Document the various prompt attempts
- Summary
- Endnotes
- 页数
- 68 页
- 上传者
- Uni24h
评论 (0)
暂无评论。快来抢沙发吧!
Ngân hàng đề thi môn: Hệ thống thông tin quản lý
Đề thi môn Cơ sở dữ liệu (kèm Đáp án) - Đại học Sư phạm kỹ thuật
Đề thi và đáp án môn Hệ thống thông tin kế toán
Đề thi và đáp án môn Cấu trúc dữ liệu giải thuật
Đáp án đề thi môn Mạng máy tính - ĐH Công nghệ thông tin (CNTT)
Chương 7.Cơ học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 6.Quang học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 5.Thuyết tương đối - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 4. Tán xạ ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 3.Phân cực ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
评论 (0)
暂无评论。快来抢沙发吧!