กลยุทธ์การออกแบบที่กระตุ้นผลลัพธ์

หน้านี้จะแนะนำกลยุทธ์การออกแบบพรอมต์ทั่วไปที่คุณสามารถนำไปใช้เมื่อ เพื่อออกแบบพรอมต์ แม้ว่าไม่มีวิธีที่ถูกหรือผิดในการออกแบบพรอมต์ แต่ก็มี กลยุทธ์ที่คุณสามารถใช้เพื่อให้ส่งผลต่อคำตอบของโมเดล การทดสอบและการประเมินที่เข้มงวดจะยังคงอยู่ สำคัญต่อการเพิ่มประสิทธิภาพโมเดล

โมเดลภาษาขนาดใหญ่ (LLM) จะได้รับการฝึกจากข้อมูลข้อความปริมาณมหาศาลเพื่อเรียนรู้รูปแบบและ ความสัมพันธ์ระหว่างหน่วยภาษา เมื่อได้รับข้อความบางส่วน (ข้อความแจ้ง) โมเดลภาษาสามารถ คาดการณ์สิ่งที่น่าจะเกิดขึ้นต่อไป เช่น เครื่องมือการเติมข้อความอัตโนมัติที่ซับซ้อน ดังนั้นเมื่อ ในการออกแบบพรอมต์ ให้พิจารณาปัจจัยต่างๆ ที่มีผลต่อสิ่งที่โมเดลคาดการณ์ว่าจะเกิดขึ้น ถัดไป

ให้คำแนะนำที่ชัดเจนและเจาะจง

การให้คำแนะนำแก่โมเดลว่าสิ่งที่ต้องทำคือวิธีปรับแต่งโมเดลที่มีประสิทธิผลและมีประสิทธิภาพ พฤติกรรมของคุณ ตรวจสอบว่าวิธีการที่คุณให้นั้นชัดเจนและเฉพาะเจาะจง วิธีการอาจเป็น ง่ายเพียงรายการคำแนะนำทีละขั้นตอน หรือซับซ้อนพอๆ กับการสร้างแผนที่แสดงประสบการณ์ของผู้ใช้ ความคิด

กำหนดงานที่จะดำเนินการ

อธิบายงานที่คุณต้องการให้โมเดลดำเนินการอย่างละเอียด งานนี้อาจเรียบง่ายอย่าง คำแนะนำทีละขั้นตอน หรือซับซ้อนพอๆ กับการกำหนดประสบการณ์และแนวความคิดของผู้ใช้ ข้อความแจ้งต่อไปนี้จะบอกให้โมเดลสรุปบล็อกข้อความ

Summarize this text.
Text: A quantum computer exploits quantum mechanical phenomena to perform calculations exponentially
faster than any modern traditional computer. At very tiny scales, physical matter acts as both
particles and as waves, and quantum computing uses specialized hardware to leverage this behavior.
The operating principles of quantum devices is beyond the scope of classical physics. When deployed
at scale, quantum computers could be used in a wide variety of applications such as: in
cybersecurity to break existing encryption methods while helping researchers create new ones, in
meteorology to develop better weather forecasting etc. However, the current state of the art quantum
computers are still largely experimental and impractical.
  
Quantum computers utilize quantum mechanical phenomena to perform computations significantly faster
than traditional computers. By exploiting the particle-wave duality of matter at tiny scales,
quantum computers leverage specialized hardware to solve problems beyond classical physics.
Potential applications include breaking encryption, developing better weather forecasting, and more.
However, current quantum computers are still largely experimental and impractical.
  

ระบุข้อจำกัด

ระบุข้อจำกัดในการอ่านข้อความแจ้งหรือสร้างคำตอบ คุณสามารถบอกโมเดล สิ่งที่ต้องทำและไม่ควรทำ จากตัวอย่างก่อนหน้านี้ การสรุปสั้นกว่าเดิม แต่คุณอาจต้องการให้ข้อมูลสรุปสั้นลง ในกรณีนี้ คุณสามารถระบุข้อจำกัดใน ข้อความแจ้งเกี่ยวกับระยะเวลาที่คุณต้องการให้มีข้อมูลสรุป:

Summarize this text in two sentences.
Text: A quantum computer exploits quantum mechanical phenomena to perform calculations exponentially
faster than any modern traditional computer. At very tiny scales, physical matter acts as both
particles and as waves, and quantum computing uses specialized hardware to leverage this behavior.
The operating principles of quantum devices is beyond the scope of classical physics. When deployed
at scale, quantum computers could be used in a wide variety of applications such as: in
cybersecurity to break existing encryption methods while helping researchers create new ones, in
meteorology to develop better weather forecasting etc. However, the current state of the art quantum
computers are still largely experimental and impractical.
    

Quantum computers use quantum mechanical phenomena to perform calculations much faster than
traditional computers. They have the potential to revolutionize various fields, but current quantum
computers are still experimental and impractical.
    

กำหนดรูปแบบของคำตอบ

นอกจากนี้ยังระบุวิธีการที่ระบุรูปแบบของคำตอบได้อีกด้วย เช่น คุณสามารถถามว่า สำหรับคำตอบที่มีการจัดรูปแบบเป็นตาราง รายการหัวข้อย่อย การเสนอขายโดยใช้เวลาสั้นๆ คีย์เวิร์ด ประโยค หรือ ย่อหน้า พรอมต์ต่อไปนี้จะบอกให้โมเดลแสดงหัวข้อย่อยของข้อมูลสำคัญใน ข้อความ:

Summarize this text as bullets points of key information.
Text: A quantum computer exploits quantum mechanical phenomena to perform calculations exponentially
faster than any modern traditional computer. At very tiny scales, physical matter acts as both
particles and as waves, and quantum computing uses specialized hardware to leverage this behavior.
The operating principles of quantum devices is beyond the scope of classical physics. When deployed
at scale, quantum computers could be used in a wide variety of applications such as: in
cybersecurity to break existing encryption methods while helping researchers create new ones, in
meteorology to develop better weather forecasting etc. However, the current state of the art quantum
computers are still largely experimental and impractical.
  
- Quantum computers leverage quantum mechanical phenomena for exponentially faster calculations than
  traditional computers.
- Quantum devices utilize specialized hardware to exploit tiny-scale matter behavior as both
  particles and waves.
- Their operating principles transcend classical physics.
- Potential applications include cybersecurity, weather forecasting, and more.
- Current quantum computers are largely experimental and impractical.
  

สรุป

  • ให้คำแนะนำแก่โมเดลเกี่ยวกับสิ่งที่ต้องทำ
  • ทำให้คำแนะนำชัดเจนและเฉพาะเจาะจง
  • ระบุข้อจำกัดหรือข้อกำหนดการจัดรูปแบบสำหรับเอาต์พุต

รวมตัวอย่างภาพถ่าย 2-3 ภาพ

คุณสามารถใส่ตัวอย่างในพรอมต์เพื่อให้โมเดลแสดงลักษณะของโมเดลที่ถูกต้อง โมเดลจะพยายามระบุรูปแบบและความสัมพันธ์จากตัวอย่างและนำไปใช้เมื่อ ในการสร้างคำตอบ พรอมต์ที่มีตัวอย่าง 2-3 รายการจะเรียกว่าพรอมต์สั้นๆ ส่วนพรอมต์ที่ไม่มีตัวอย่างจะเรียกว่าพรอมต์แบบ Zero Shot ข้อความแจ้งจำนวน 2-3 ช็อต ที่มักใช้ในการควบคุมการจัดรูปแบบ วลี การกำหนดขอบเขต หรือการจัดรูปแบบทั่วไปของคำตอบโมเดล ใช้ตัวอย่างที่เจาะจงและหลากหลายเพื่อช่วยโมเดลจำกัดโฟกัสให้แคบลงและสร้างความแม่นยำมากขึ้น รายการ

เราขอแนะนำให้ใส่ตัวอย่าง 2-3 ช็อตในพรอมต์เสมอ แสดงพรอมต์ที่ไม่ต้องช็อตน้อย ตัวอย่างอาจมีประสิทธิภาพน้อยลง เนื่องจากรูปแบบจะแสดงวิธีใช้วิธีการ ใน คุณสามารถนำวิธีการออกจากพรอมต์ได้ หากตัวอย่างของคุณชัดเจนเพียงพอในการแสดง งานที่กำลังทำอยู่

พรอมต์แบบ Zero-shot กับ 2-3 ช็อต

ข้อความแจ้งแบบ Zero shot ต่อไปนี้จะขอให้โมเดลเลือกคำอธิบายที่ดีที่สุด

Please choose the best explanation to the question:

Question: How is snow formed?
Explanation1: Snow is formed when water vapor in the air freezes into ice crystals in the
atmosphere, which can combine and grow into snowflakes as they fall through the atmosphere and
accumulate on the ground.
Explanation2: Water vapor freezes into ice crystals forming snow.
Answer:
  
Explanation1
  

หากกรณีการใช้งานของคุณจำเป็นต้องใช้โมเดลเพื่อสร้างคำตอบที่กระชับ คุณสามารถรวมตัวอย่างใน ซึ่งให้ความสำคัญกับคำตอบที่สั้นกระชับ

พรอมต์ต่อไปนี้มีตัวอย่าง 2 รายการที่แสดงค่ากำหนดสำหรับคำอธิบายแบบย่อ ใน คำตอบ คุณจะเห็นว่าตัวอย่างได้ช่วยให้โมเดลเลือกคำอธิบายที่สั้นกว่า (Explanation2) ตรงข้ามกับคำอธิบายแบบยาว (Explanation1) อย่างก่อนหน้านี้

Please choose the best explanation to the question:

Question: Why is sky blue?
Explanation1: The sky appears blue because of Rayleigh scattering, which causes shorter blue
wavelengths of light to be scattered more easily than longer red wavelengths, making the sky look
blue.
Explanation2: Due to Rayleigh scattering effect.
Answer: Explanation2

Question: What is the cause of earthquakes?
Explanation1: Sudden release of energy in the Earth's crust.
Explanation2: Earthquakes happen when tectonic plates suddenly slip or break apart, causing a
release of energy that creates seismic waves that can shake the ground and cause damage.
Answer: Explanation1

Question: How is snow formed?
Explanation1: Snow is formed when water vapor in the air freezes into ice crystals in the
atmosphere, which can combine and grow into snowflakes as they fall through the atmosphere and
accumulate on the ground.
Explanation2: Water vapor freezes into ice crystals forming snow.
Answer:
  
Explanation2
  

หาตัวอย่างที่เหมาะสมที่สุด

คุณสามารถทดสอบจำนวนตัวอย่างที่จะใส่ในพรอมต์สำหรับ รายการ โมเดลอย่าง PaLM และ Gemini มักจะจับรูปแบบได้โดยใช้ตัวอย่าง 2-3 ตัวอย่าง แม้ว่า อาจต้องทดสอบกับจำนวนตัวอย่างที่จะนำไปสู่ผลลัพธ์ที่ต้องการ สำหรับรูปแบบที่เรียบง่าย เช่น BERT คุณอาจต้องใช้ตัวอย่างเพิ่มเติม ในขณะเดียวกัน หากคุณใส่ตัวอย่างมากเกินไป โมเดล อาจเริ่ม มากเกินไป การตอบสนองต่อตัวอย่าง

ใช้ตัวอย่างเพื่อแสดงลวดลายแทนลายแอนดรอย

การใช้ตัวอย่างเพื่อแสดงรูปแบบที่จะทำตามจะมีประสิทธิภาพมากกว่าการใช้ตัวอย่างเพื่อ แสดงโมเดลที่ต่อต้านรูปแบบที่ควรหลีกเลี่ยง

รูปแบบเชิงลบ:

Don't end haikus with a question:
Haiku are fun
A short and simple poem
Don't you enjoy them?
  

รูปแบบเชิงบวก:

Always end haikus with an assertion:
Haiku are fun
A short and simple poem
A joy to write
  

ใช้การจัดรูปแบบที่สอดคล้องกันในตัวอย่าง

ตรวจสอบว่าโครงสร้างและการจัดรูปแบบของตัวอย่าง 2-3 ช็อตเหมือนกันเพื่อหลีกเลี่ยงคำตอบ ด้วยรูปแบบที่ไม่ต้องการ วัตถุประสงค์หลักอย่างหนึ่งของการเพิ่มตัวอย่าง 2-3 ช็อตในพรอมต์คือ แสดงรูปแบบการตอบสนอง ดังนั้นคุณจึงต้องมีรูปแบบที่สอดคล้องกันใน ตัวอย่างทั้งหมด โดยเฉพาะแท็ก XML ช่องว่าง บรรทัดใหม่ และตัวอย่าง ตัวแยก

สรุป

  • การใส่ตัวอย่างพรอมต์ในพรอมต์ช่วยให้โมเดลเรียนรู้วิธีตอบสนอง
  • ให้ตัวอย่างโมเดลของรูปแบบที่จะติดตาม แทนตัวอย่างรูปแบบไปยัง เพื่อหลีกเลี่ยง
  • ทดสอบกับจำนวนพรอมต์ที่จะรวม ทั้งนี้ขึ้นอยู่กับรุ่น มีตัวอย่างน้อยเกินไป ไม่มีประสิทธิภาพในการเปลี่ยนแปลงพฤติกรรมโมเดล การมีตัวอย่างมากเกินไปทำให้โมเดลมีจำนวนมากเกินไป
  • ใช้การจัดรูปแบบที่สอดคล้องกันในตัวอย่าง

เพิ่มข้อมูลบริบท

คุณสามารถรวมไว้ในพรอมต์และข้อมูลที่โมเดลต้องการในการแก้โจทย์ แทนที่จะคิดว่าโมเดลมีข้อมูลที่จำเป็นทั้งหมด บริบทนี้ ข้อมูลช่วยให้โมเดลเข้าใจข้อจำกัดและรายละเอียดของสิ่งที่คุณขอให้ทำ สิ่งที่ควรทำ

ตัวอย่างต่อไปนี้ขอให้โมเดลให้คำแนะนำในการแก้ปัญหาสำหรับเราเตอร์

What should I do to fix my disconnected wifi? The light on my Google Wifi router is yellow and
blinking slowly.
  
1. **Check the Cables:**
- Make sure that all cables are securely connected to your Google Wifi router and modem.
- Try replacing the cables with new ones to ensure they are not faulty.


2. **Reboot the Router:**
- Unplug your Google Wifi router and modem from the power outlet.
- Wait for at least 30 seconds.
- Plug the modem and router back in and wait for them to start up.


3. **Factory Reset the Router:**
- Resetting the router will restore it to its default settings.
- Find the small reset button on the back of the router.
- Press and hold the reset button with a paper clip or similar object for 10 seconds.
- Release the button and wait for the router to restart.


4. **Check Your Internet Connection:**
- Use a wired connection to connect a device directly to your modem.
- If the internet works, the issue may be with your router.
- If the internet still doesn't work, contact your Internet Service Provider (ISP).


5. **Update Router's Firmware:**
- Check if there is a firmware update available for your Google Wifi router.
- Download and install the latest firmware update from the Google Wifi app.


6. **Interference and Obstacles:**
- Make sure the router is not near electronic devices that can cause interference, like microwaves or cordless phones.
- Remove any obstacles between the router and your devices, such as furniture or thick walls.


7. **Change Wi-Fi Channel:**
- In the Google Wifi app, go to Settings > Network & General > Advanced Networking.
- Try changing the Wi-Fi channel to a less congested one.


8. **Contact Google Support:**
- If you've tried the above steps and the issue persists, contact Google support for further assistance.
  

การตอบสนองมีลักษณะเหมือนข้อมูลการแก้ปัญหาทั่วไปที่ไม่ได้เฉพาะเจาะจงสำหรับเราเตอร์ หรือ สถานะของไฟ LED บอกสถานะ

ในการปรับแต่งการตอบสนองสำหรับเราเตอร์เฉพาะ คุณสามารถเพิ่มข้อความแจ้งของเราเตอร์ได้ เป็นบริบทสำหรับใช้อ้างอิงเมื่อให้คำตอบ

Answer the question using the text below. Respond with only the text provided.
Question: What should I do to fix my disconnected wifi? The light on my Google Wifi router is yellow and blinking slowly.

Text:
Color: Slowly pulsing yellow
What it means: There is a network error.
What to do:
Check that the Ethernet cable is connected to both your router and your modem and both devices are turned on. You might need to unplug and plug in each device again.

Color: Fast blinking yellow
What it means: You are holding down the reset button and are factory resetting this device.
What to do:
If you keep holding down the reset button, after about 12 seconds, the light will turn solid yellow. Once it is solid yellow, let go of the factory reset button.

Color: Solid yellow
What it means: Router is factory resetting.
What to do:
This can take up to 10 minutes. When it's done, the device will reset itself and start pulsing white, letting you know it's ready for setup.

Color: Solid red
What it means: Something is wrong.
What to do:
Critical failure. Factory reset the router. If the light stays red, contact Wifi customer support.
  
Check that the Ethernet cable is connected to both your router and your modem and both devices are turned on. You might need to unplug and plug in each device again.
  

สรุป

  • ใส่ข้อมูล (บริบท) ในพรอมต์ที่คุณต้องการใช้โมเดลเมื่อสร้าง คำตอบ
  • ให้คำแนะนำแก่โมเดลเกี่ยวกับวิธีใช้ข้อมูลตามบริบท

เพิ่มคำนำหน้า

คํานําหน้าคือคําหรือวลีที่คุณเพิ่มลงในเนื้อหาพรอมต์ซึ่งสามารถใช้เพื่อวัตถุประสงค์ต่างๆ โดยขึ้นอยู่กับตำแหน่งที่คุณใส่คำนำหน้า ดังนี้

  • คำนำหน้าอินพุต: การเพิ่มคำนำหน้าลงในสัญญาณอินพุตที่มีความหมาย ของอินพุตไปยังโมเดล เช่น คำนำหน้า "ภาษาอังกฤษ" และ "ฝรั่งเศส" แบ่งเขต 2 ภาษาต่างๆ
  • คำนำหน้าเอาต์พุต: แม้ว่าโมเดลจะสร้างเอาต์พุต แต่คุณสามารถเพิ่ม คำนำหน้าสำหรับเอาต์พุตในพรอมต์ คำนำหน้าเอาต์พุตจะให้ข้อมูลโมเดลเกี่ยวกับสิ่งที่ ต้องการการตอบกลับ เช่น คำนำหน้าเอาต์พุต "JSON:" ส่งสัญญาณไปยังโมเดลว่า เอาต์พุตควรเป็นรูปแบบ JSON
  • ตัวอย่างคํานําหน้า: พรอมต์แบบไม่กี่ช็อต การเพิ่มคํานําหน้าลงในตัวอย่างจะเป็น ป้ายกำกับที่โมเดลสามารถใช้เมื่อสร้างเอาต์พุต ซึ่งทำให้แยกวิเคราะห์ผลลัพธ์ได้ง่ายขึ้น เนื้อหา

ในตัวอย่างต่อไปนี้ "ข้อความ" เป็นคำนำหน้าอินพุตและ "คำตอบคือ:" เป็นเอาต์พุต คำนำหน้า

Classify the text as one of the following categories.
- large
- small
Text: Rhino
The answer is: large
Text: Mouse
The answer is: small
Text: Snail
The answer is: small
Text: Elephant
The answer is:
  
large
  

ให้โมเดลป้อนข้อมูลบางส่วน

โมเดลภาษาที่สร้างขึ้นทำงานเหมือนเครื่องมือเติมข้อความอัตโนมัติขั้นสูง เมื่อคุณระบุบางส่วน เนื้อหา โมเดลสามารถให้เนื้อหาส่วนที่เหลือหรือสิ่งที่คิดว่าเป็นความต่อเนื่องของเนื้อหานั้น เนื้อหาเป็นการตอบกลับได้ ในการดำเนินการดังกล่าว หากคุณใส่ตัวอย่างหรือบริบทใดๆ โมเดลจะสามารถใช้เวลา ตัวอย่างหรือบริบทเหล่านั้น

ตัวอย่างต่อไปนี้จะแสดงพรอมต์ที่มีคำสั่งและอินพุตเอนทิตี

For the given order, return a JSON object that has the fields cheeseburger, hamburger, fries, or
drink, with the value being the quantity.

Order: A burger and a drink.
  
```
{
"cheeseburger": 0,
"hamburger": 1,
"fries": 0,
"drink": 1
}
```
  

แม้ว่าโมเดลจะทำงานตามข้อความแจ้ง แต่การเขียนคำสั่งเป็นภาษาธรรมชาติบางครั้งก็อาจทำให้ เป็นเรื่องที่ท้าทาย และส่งผลอย่างมากต่อการตีความของโมเดล เช่น เมนูร้านอาหาร อาจมีหลายรายการ หากต้องการลดขนาดการตอบกลับ JSON คุณอาจต้องการละรายการที่ ไม่ได้สั่งซื้อ ในกรณีนี้ คุณสามารถยกตัวอย่างและคำนำหน้าการตอบกลับ แล้วปล่อยให้โมเดล ทำให้เสร็จ:

Valid fields are cheeseburger, hamburger, fries, and drink.
Order: Give me a cheeseburger and fries
Output:
```
{
  "cheeseburger": 1,
  "fries": 1
}
```
Order: I want two burgers, a drink, and fries.
Output:
  
```
{
"hamburger": 2,
"drink": 1,
"fries": 1
}
```
  

สังเกตว่า "ชีสเบอร์เกอร์" ได้รับการยกเว้นจากเอาต์พุตเนื่องจากไม่ได้เป็นส่วนหนึ่งของคำสั่งซื้อ

พรอมต์โมเดลเพื่อจัดรูปแบบการตอบสนอง

กลยุทธ์การเสร็จสมบูรณ์ยังช่วยจัดรูปแบบคำตอบได้ด้วย ตัวอย่างต่อไปนี้จะแสดงถึง เพื่อสร้างโครงร่างเรียงความ:

Create an outline for an essay about hummingbirds.
  
I. Introduction
A. Hook: Begin with an intriguing fact or description of hummingbirds.
B. Provide some background information on hummingbirds.
1. Mention their small size and long, thin beaks.
2. Highlight their unique ability to hover and fly backward.

II. Body
A. Anatomy and Physiology
1. Elaborate on their tiny size, making comparisons to other animals.
2. Describe their wings and how they enable hovering and swift flight.
3. Discuss their metabolism and energy requirements, emphasizing their caloric needs.

B. Feeding Habits and Diet
1. Explain their primary food source, nectar, and how they extract it from flowers.
2. Describe their ability to feed from a wide variety of flowers.
3. Mention their consumption of insects and the nutritional value they provide.

C. Migration Patterns
1. Discuss the incredible long-distance migrations of some hummingbird species.
2. Explain the phenomenon of seasonal migration and the environmental factors driving it.
3. Describe the routes taken by different species during migration.

D. Conservation and Threats
1. Highlight the importance of hummingbirds in ecosystems as pollinators.
2. Discuss the challenges and threats they face, such as habitat loss, nectar scarcity, and climate change.
3. Mention conservation efforts and ways to support hummingbird populations.

III. Conclusion
A. Summarize the main points covered in the essay.
B. Reinforce the importance of hummingbirds and their ecological role.
C. Provide a final thought or call to action to protect these fascinating creatures.
  

พรอมต์ไม่ได้ระบุรูปแบบของโครงร่างและโมเดลเลือกรูปแบบให้คุณ โดยวิธีการมีดังนี้ โมเดลให้แสดงผลโครงร่างในรูปแบบเฉพาะ คุณสามารถเพิ่มข้อความที่แสดงจุดเริ่มต้นของ โครงร่าง แล้วปล่อยให้โมเดลทำงานตามรูปแบบที่คุณได้เริ่มไว้

Create an outline for an essay about hummingbirds.
I. Introduction
   *
  
I. Introduction
* Capture the reader's attention with an interesting anecdote or fact about hummingbirds.
* Provide a brief background on hummingbirds, including their unique characteristics.
* State the main points that will be covered in the essay.

II. The Unique Characteristics of Hummingbirds
* Discuss the hummingbird's exceptionally rapid wing-beat, allowing them to hover and fly backward.
* Highlight their tiny size, making them the smallest birds in the world.
* Describe their long, slender beaks and tongues, allowing them to reach deep into flowers to extract nectar.
* Explain their iridescent plumage, which creates brilliant and vibrant colors.

III. Hummingbird Migration and Distribution
* Discuss the extensive migration patterns of hummingbirds, covering vast distances across continents.
* Describe the different habitats where hummingbirds can be found, including tropical rainforests, deserts, and urban areas.
* Explain the seasonal changes that influence hummingbird migration and habitat selection.

IV. Hummingbird Diet and Feeding Habits
* Focus on the hummingbird's primary food source, which is nectar from flowers.
* Describe their ability to consume insects, spiders, and other small invertebrates for protein.
* Explain how hummingbirds use their long, slender tongues to extract nectar from flowers.
* Discuss the importance of flowering plants in providing sustenance for hummingbirds.

V. Reproduction and Nesting Behavior
* Describe the mating rituals and courtship behavior of hummingbirds.
* Explain the process of nest-building, including the materials used and the unique characteristics of hummingbird nests.
* Discuss the role of the female hummingbird in laying and incubating eggs.
* Describe the development of hummingbird chicks and the role of both parents in providing care.

VI. Threats to Hummingbirds and Conservation Efforts
* Highlight habitat loss, climate change, and deforestation as significant threats to hummingbird populations.
* Describe the role of habitat conservation initiatives in protecting hummingbird habitats.
* Explain the importance of creating hummingbird-friendly gardens and landscapes.
* Discuss the efforts of organizations and individuals working to conserve hummingbird populations.

VII. Conclusion
* Summarize the main points covered in the essay, emphasizing the unique characteristics, migration patterns, diet, reproduction, and conservation of hummingbirds.
* Provide a closing statement that leaves a lasting impression on the reader and reinforces the significance of these fascinating creatures.
  

สรุป

  • หากคุณป้อนข้อมูลบางส่วนให้กับโมเดล โมเดลจะทำอินพุตดังกล่าวตามอินพุตที่มี ตัวอย่างหรือบริบทในพรอมต์
  • ในบางครั้ง การให้โมเดลกรอกข้อมูลอาจง่ายกว่าการอธิบายงานตามธรรมชาติ ภาษา
  • การเพิ่มคำตอบบางส่วนให้กับพรอมต์สามารถช่วยให้โมเดลเป็นไปตามรูปแบบที่ต้องการหรือ

จำแนกพรอมต์ออกเป็นคอมโพเนนต์ง่ายๆ

สำหรับกรณีการใช้งานที่ต้องมีพรอมต์ที่ซับซ้อน คุณช่วยโมเดลจัดการความซับซ้อนนี้ได้ได้โดย แบ่งสิ่งต่างๆ ออกเป็นส่วนประกอบที่เรียบง่ายขึ้น

วิธีการแจกแจงรายละเอียด

แทนที่จะมีวิธีการหลายรายการในพรอมต์เดียว ให้สร้างพรอมต์ 1 รายการต่อคำสั่ง คุณสามารถ เลือกพรอมต์ที่จะดำเนินการโดยอิงตามข้อมูลของผู้ใช้

ข้อความแจ้งของเชน

สำหรับงานที่ซับซ้อนที่ต้องมีหลายขั้นตอนตามลำดับ โปรดกำหนดให้แต่ละขั้นตอนเป็นพรอมต์และเชื่อมโยง พร้อมกันตามลำดับ ในเชนพรอมต์ตามลำดับนี้ เอาต์พุตของพรอมต์เดียวใน ลำดับจะกลายเป็นอินพุตของพรอมต์ถัดไป เอาต์พุตของข้อความแจ้งสุดท้ายในลำดับคือ เอาต์พุตสุดท้าย

คำตอบโดยรวม

การรวมคือเวลาที่คุณต้องการดำเนินการต่างๆ พร้อมกันในส่วนต่างๆ ของ และรวบรวมผลลัพธ์เพื่อสร้างผลลัพธ์สุดท้าย ตัวอย่างเช่น คุณสามารถบอกให้โมเดล ดำเนินการหนึ่งในส่วนแรกของข้อมูล และดำเนินการอื่นกับส่วนที่เหลือ และรวบรวมผลลัพธ์

สรุป

  • แจกแจงคำสั่งที่ซับซ้อนเป็นพรอมต์สำหรับแต่ละคำสั่งและตัดสินใจว่าจะใช้พรอมต์ใด เป็นไปตามข้อมูลของผู้ใช้
  • แบ่งขั้นตอนในลำดับหลายๆ ขั้นตอนออกเป็นพรอมต์แยกกัน และเชื่อมโยงขั้นตอนเหล่านั้นเข้าด้วยกันเพื่อให้เอาต์พุต ในข้อความแจ้งก่อนหน้าจะกลายเป็นอินพุตของพรอมต์ต่อไปนี้
  • แบ่งงานที่ทำไปพร้อมกันและรวบรวมคำตอบเพื่อสร้างผลลัพธ์สุดท้าย

การทดสอบโดยใช้ค่าพารามิเตอร์ที่แตกต่างกัน

การเรียกแต่ละรายการที่คุณส่งไปยังโมเดลจะมีค่าพารามิเตอร์ที่ควบคุมวิธีสร้างโมเดล คำตอบ โมเดลนี้สามารถสร้างผลลัพธ์ที่แตกต่างกันสำหรับค่าพารามิเตอร์ที่แตกต่างกัน ทดลองใช้ ค่าพารามิเตอร์ที่แตกต่างกัน เพื่อให้ได้ค่าที่ดีที่สุดสำหรับงาน พารามิเตอร์ที่ใช้ได้กับ รุ่นต่างๆ อาจแตกต่างกัน พารามิเตอร์ที่ใช้กันมากที่สุดมีดังนี้

  • โทเค็นเอาต์พุตสูงสุด
  • อุณหภูมิ
  • ท็อป K
  • ตัวท็อป-พี

โทเค็นเอาต์พุตสูงสุด

จำนวนโทเค็นสูงสุดที่สร้างในการตอบกลับได้ โทเค็นคือ ประมาณ 4 อักขระ โทเค็น 100 รายการจะหมายถึงคำประมาณ 20 คำ

ระบุค่าที่ต่ำกว่าสำหรับคำตอบที่สั้นลงและค่าที่สูงกว่าสำหรับคำตอบที่นานขึ้น คำตอบ

อุณหภูมิ

อุณหภูมิจะใช้เพื่อการสุ่มตัวอย่างระหว่างการสร้างการตอบสนองซึ่งเกิดขึ้น เมื่อใช้ topP และ topK ตัวควบคุมอุณหภูมิ ระดับการสุ่มในการเลือกโทเค็น อุณหภูมิที่ต่ำลงเหมาะกับ พรอมต์ที่ต้องมีการกำหนดตายตัวมากขึ้น และมีแนวคิดแบบเปิดหรือมีความคิดสร้างสรรค์น้อยกว่า การตอบสนองขณะที่อุณหภูมิที่สูงขึ้นอาจทำให้มีความหลากหลายหรือสร้างสรรค์มากขึ้น รายการ อุณหภูมิ 0 เป็นเชิงกำหนด ซึ่งหมายความว่า ระบบจะเลือกคำตอบที่มีความน่าจะเป็นสูงสุดไว้เสมอ

สำหรับกรณีการใช้งานส่วนใหญ่ ให้ลองเริ่มด้วยอุณหภูมิที่ 0.2 ถ้า โมเดลส่งคืนคำตอบที่กว้างเกินไป สั้นเกินไป หรือโมเดลให้ การตอบสนองสำรอง ลองเพิ่มอุณหภูมิ

ท็อป K

Top-K จะเปลี่ยนวิธีที่โมเดลเลือกโทเค็นเพื่อแสดงผล ท็อป K ของ 1 หมายความว่าโทเค็นที่เลือกถัดไปน่าจะเป็นไปได้มากที่สุดในบรรดาโทเค็นทั้งหมด ในคำศัพท์ของโมเดล (หรือเรียกว่าการถอดรหัสแบบโล่ง) ขณะที่ 3 หมายความว่าจะเลือกโทเค็นถัดไปจากตัวเลือกยอดนิยม 3 รายการ โทเค็นที่เป็นไปได้โดยใช้อุณหภูมิ

สำหรับขั้นตอนการเลือกโทเค็นแต่ละรายการ โทเค็นสูงสุด K ที่มีค่าสูงสุด จะเป็นการสุ่มตัวอย่าง จากนั้นระบบจะกรองโทเค็นเพิ่มเติมโดยอิงตาม Top-P ที่มี โทเค็นสุดท้ายที่เลือกโดยใช้การสุ่มตัวอย่างอุณหภูมิ

ระบุค่าต่ำกว่าสำหรับคำตอบแบบสุ่มน้อยลงและค่าที่สูงขึ้นสำหรับคำตอบที่มากกว่า คำตอบแบบสุ่ม Top-K เริ่มต้นคือ 40

ตัวท็อป-พี

Top-P จะเปลี่ยนวิธีที่โมเดลเลือกโทเค็นเพื่อแสดงผล เลือกโทเค็นแล้ว จากมากที่สุด (ดู top-K) ไปหาความน่าจะเป็นน้อยที่สุดจนถึงผลรวมของความน่าจะเป็น เท่ากับค่า Top-P เช่น ถ้าโทเค็น A, B และ C มีความน่าจะเป็น 0.3, 0.2 และ 0.1 และค่า P-P บนสุดคือ 0.5 โมเดลจะ เลือก A หรือ B เป็นโทเค็นถัดไปโดยใช้อุณหภูมิและยกเว้น C เป็นโทเค็น เป็นตัวเลือก

ระบุค่าต่ำกว่าสำหรับคำตอบแบบสุ่มน้อยลงและค่าที่สูงขึ้นสำหรับคำตอบที่มากกว่า คำตอบแบบสุ่ม Top-P เริ่มต้นคือ 0.95

กลยุทธ์การทำซ้ำแบบทันที

การออกแบบพรอมต์เป็นกระบวนการที่ต้องทำซ้ำๆ ซึ่งมักจะต้องทำซ้ำๆ หลายครั้งจึงจะได้ผลลัพธ์ คำตอบที่ต้องการอย่างสม่ำเสมอ ส่วนนี้มีคำแนะนำเกี่ยวกับสิ่งต่างๆ ที่คุณสามารถลองทำเมื่อ ทำซ้ำในพรอมต์ของคุณ

ใช้วลีอื่น

การใช้คำหรือวลีที่แตกต่างกันในพรอมต์มักให้คำตอบต่างจากโมเดล แม้ว่าทั้งหมดมีความหมายเหมือนกัน หากคุณไม่ได้รับผลลัพธ์ตามที่คาดไว้จาก ลองปรับเปลี่ยนข้อความหน่อย

Version 1:
How do I bake a pie?

Version 2:
Suggest a recipe for a pie.

Version 3:
What's a good pie recipe?
  

เปลี่ยนไปใช้งานที่คล้ายกัน

หากโมเดลดำเนินการตามคำสั่งสำหรับงานไม่ได้ ให้ลองระบุวิธีการสำหรับ งานที่คล้ายกันซึ่งบรรลุผลลัพธ์เดียวกัน

ข้อความแจ้งนี้จะบอกโมเดลให้จัดหมวดหมู่หนังสือโดยใช้หมวดหมู่ที่กำหนดไว้ล่วงหน้า

Which category does The Odyssey belong to:
thriller
sci-fi
mythology
biography
  
The answer: mythology

Explanations:

The Odyssey is an epic poem in ancient Greek literature. It is one of two major ancient Greek epic
poems attributed to Homer. The Odyssey is an epic poem that tells the story of Odysseus, a Greek
hero who fought in the Trojan War and then spent ten years trying to return home to Ithaca. The
Odyssey is a work of mythology.
  

คำตอบถูกต้อง แต่ไม่อยู่ภายในขอบเขตของตัวเลือก และคุณยัง ต้องการสร้างแบบจำลองให้ตอบกลับด้วยตัวเลือกใดตัวเลือกหนึ่ง แทนที่จะเป็นแบบเต็มประโยค ในกรณีนี้ คุณก็สามารถปรับเปลี่ยนคำสั่งให้เป็นคำถามแบบหลายตัวเลือก และขอให้โมเดลเลือก ตัวเลือก

Multiple choice problem: Which of the following options describes the book The Odyssey?
Options:
- thriller
- sci-fi
- mythology
- biography
  
The answer is: mythology
  

เปลี่ยนลำดับของเนื้อหาพรอมต์

ลำดับของเนื้อหาในพรอมต์อาจส่งผลต่อคำตอบในบางครั้ง ลองเปลี่ยน ลำดับของเนื้อหาและดูว่าจะส่งผลต่อการตอบกลับอย่างไร

Version 1:
[examples]
[context]
[input]

Version 2:
[input]
[examples]
[context]

Version 3:
[examples]
[input]
[context]

การตอบกลับสำรอง

การตอบกลับสำรองคือการตอบกลับที่โมเดลแสดงผลเมื่อพรอมต์หรือการตอบกลับ ทริกเกอร์ตัวกรองความปลอดภัย ตัวอย่างคำตอบสำรองคือ "ช่วยเรื่องนั้นไม่ได้เพราะ ฉันเป็นเพียงโมเดลภาษาเท่านั้น"

หากโมเดลตอบสนองด้วยการตอบสนองแบบสำรอง ให้ลองเพิ่มอุณหภูมิ

สิ่งที่ควรหลีกเลี่ยง

  • หลีกเลี่ยงการใช้โมเดลในการสร้างข้อมูลข้อเท็จจริง
  • ใช้อย่างระมัดระวังสำหรับโจทย์คณิตศาสตร์และตรรกะ

ขั้นตอนถัดไป

  • เมื่อคุณมีความเข้าใจในการออกแบบพรอมต์ได้ลึกซึ้งยิ่งขึ้นแล้ว ให้ลองเขียน ของคุณเองโดยใช้ Google AI Studio
  • หากต้องการเรียนรู้เกี่ยวกับการแจ้งผ่านสื่อหลากรูปแบบ โปรดดูที่ พรอมต์ด้วยไฟล์สื่อ