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)
- Seiten
- 68
- Định dạng
- Dung lượng
- 6.5 MB
- Năm
- 2025
- Trường
- Aufrufe
- 0
- Kommentare
- 0
- Lượt tải
- 0
Vorschau wird generiert...
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.
- Dokumentenname
- 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)
- Schule / Kurs
- Autor (im Dokument)
- Lee Boonstra
- Inhalt
- 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ả.
- Inhaltsverzeichnis
- 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
- Seiten
- 68 Seiten
- Hochgeladen von
- Uni24h
Beschreibung
Trích nội dung tài liệu
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
Häufig gestellte Fragen
Ist dieses Dokument kostenlos?
Ja. „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)“ ist kostenlos — melden Sie sich einfach an und klicken Sie auf Herunterladen, um die Originaldatei zu erhalten.
Wie viele Seiten hat dieses Dokument?
Das Dokument hat 68 Seiten. Sie können es vor dem Herunterladen online in der Vorschau ansehen.
Kann ich vor dem Herunterladen eine Vorschau ansehen?
Ja. Sie können sich dieses Dokument direkt auf dieser Seite im Online-Reader ansehen und dann entscheiden, ob Sie es herunterladen möchten.
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)
Vorschau wird generiert...
Trích nội dung tài liệu
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
- Dokumentenname
- 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)
- Schule / Kurs
- Autor (im Dokument)
- Lee Boonstra
- Inhalt
- 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ả.
- Inhaltsverzeichnis
- 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
- Seiten
- 68 Seiten
- Hochgeladen von
- Uni24h
Kommentare (0)
Noch keine Kommentare. Seien Sie der Erste!
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)
Tổng hợp Đề Toán 5 - Luyện thi vào Lớp 6 - CLB EMath
Bài giảng vật lý đại cương (Chương 3) - Đỗ Ngọc Uấn
Chương 8.Nguyên tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
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

Kommentare (0)
Noch keine Kommentare. Seien Sie der Erste!