استراتيجيات التصميم الفوري

تقدم لك هذه الصفحة بعض إستراتيجيات تصميم المطالبة العامة التي يمكنك استخدامها عند وتصميم المطالبات. وفي حين أنه لا توجد طريقة صحيحة أو خاطئة لتصميم مطالبة، هناك العديد من والاستراتيجيات التي يمكنك استخدامها للتأثير في استجابات النموذج. تظل عمليات الاختبار والتقييم الصارمة أمرًا بالغ الأهمية لتحسين أداء النموذج

يتم تدريب النماذج اللغوية الكبيرة (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.
  

ملخّص

  • أعط النماذج إرشادات حول ما يجب فعله.
  • اجعل التعليمات واضحة ومحددة.
  • حدد أي قيود أو متطلبات تنسيق للمخرج.

تضمين أمثلة لقطات قليلة

يمكنك تضمين أمثلة في الطلب توضّح النموذج الذي يظهر بالشكل الصحيح. تشير رسالة الأشكال البيانية نموذج محاولة تحديد الأنماط والعلاقات من الأمثلة ويطبقها عند إنشاء استجابة. يُطلق على الطلبات التي تحتوي على بعض الأمثلة اسم مقتطفات من الطلبات، بينما يُطلق على الطلبات التي لا تقدّم أي أمثلة اسم الطلبات بدون لقطة. الطلبات بلقطات قليلة تُستخدم غالبًا لتنظيم التنسيق أو الصياغة أو تحديد النطاق أو النمط العام لاستجابات النموذج. استخدام أمثلة محددة ومتنوعة لمساعدة النموذج في تضييق نطاق تركيزه وتحقيق نتائج أكثر دقة نتائجك.

ننصحك دائمًا بتضمين أمثلة قليلة اللقطات في الطلبات. طلبات بدون لقطات قليلة من المرجح أن تكون الأمثلة أقل فاعلية، لأنها توضح النموذج كيفية تطبيق التعليمات. ضِمن يمكنك إزالة التعليمات من طلبك إذا كانت أمثلتك واضحة بما فيه الكفاية في عرض المهمة القائمة.

الطلبات المستندة إلى لقطات سريعة فقط مقابل الطلبات المستندة إلى لقطات قليلة

في المطالبة التالية ذات اللقطة الصفرية التي تطلب من النموذج اختيار أفضل تفسير.

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
  

إذا كانت حالة الاستخدام تتطلب أن ينتج عن النموذج ردودًا موجزة، يمكنك تضمين أمثلة في مطالبة تعطي الأفضلية للردود المختصرة.

يقدم المطالبة التالية مثالين يظهران التفضيل للتفسيرات الأقصر. ضِمن الإجابة، يمكنك أن ترى أن الأمثلة وجّهت النموذج لاختيار الشرح الأقصر (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 من اختيار الأنماط بالاستناد إلى بعض الأمثلة، قد تحتاج إلى تجربة عدد الأمثلة التي تؤدي إلى النتائج المرجوة. للنماذج الأبسط مثل 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
  

استخدام تنسيق متسق في جميع الأمثلة

تأكد من أن بنية وتنسيق الأمثلة الصغيرة هي نفسها لتجنب الردود بتنسيقات غير مرغوب فيها. أحد الأهداف الأساسية لإضافة أمثلة قليلة اللقطات في المطالبات هو لإظهار تنسيق الاستجابة للنموذج. لذلك، من الضروري ضمان تنسيق متسق عبر جميع الأمثلة، ولا سيما مع التركيز على علامات 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.
  

ملخّص

  • ضمِّن معلومات (سياق) في الطلب الذي تريد أن يستخدمه النموذج عند إنشاء الاستجابة.
  • قدِّم تعليمات للنموذج عن كيفية استخدام المعلومات السياقية.

إضافة بادئات

البادئة هي كلمة أو عبارة تضيفها إلى محتوى المطالبة ويمكن أن تخدم عدة أغراض، استنادًا إلى المكان الذي تضع فيه البادئة:

  • بادئة الإدخال: إضافة بادئة إلى إشارات الإدخال ذات معنى دلالي الأجزاء من المدخلات إلى النموذج. على سبيل المثال، البادئات "الإنجليزية": و"الفرنسية:" تعيين اثنين بلغات مختلفة.
  • بادئة الإخراج: على الرغم من أن النموذج هو الذي يتم إنشاء الناتج، يمكنك إضافته بادئة للمخرج في المطالبة. تعطي بادئة الإخراج معلومات النموذج حول ما متوقع كاستجابة. على سبيل المثال، بادئة الإخراج "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.
  

ملخّص

  • إذا أعطيت النموذج إدخالاً جزئيًّا، سيكمل النموذج هذا الإدخال بناءً على أي مصدر متاح الأمثلة أو السياق في المطالبة.
  • قد يكون إكمال النموذج لأحد المدخلات أسهل في بعض الأحيان من وصف المهمة بطرق .
  • ويمكن أن تؤدي إضافة إجابة جزئية إلى المطالبة إلى توجيه النموذج لاتباع النمط المطلوب أو .

تقسيم الطلبات إلى مكوّنات بسيطة

وبالنسبة إلى حالات الاستخدام التي تتطلّب طلبات معقّدة، يمكنك مساعدة النموذج في التعامل مع هذا التعقيد من خلال اتّباع الخطوات التالية: تقسيم الأشياء إلى مكونات أبسط.

تعليمات التقسيم

بدلاً من تضمين العديد من التعليمات في طلب واحد، يمكنك إنشاء طلب واحد لكل تعليمات. يمكنك اختيار المطالبة التي تريد معالجتها استنادًا إلى إدخال المستخدم.

الطلبات المرتبطة بالسلاسل

بالنسبة للمهام المعقدة التي تتضمن خطوات متسلسلة متعددة، اجعل كل خطوة مطالبة وسلسلة المطالبات معًا في تسلسل. في هذه السلسلة التسلسلية من المطالبات، يمكن أن يكون ناتج أحد الطلبات في يصبح التسلسل مدخل المطالبة التالية. ناتج آخر مطالبة في التسلسل هو الإخراج النهائي.

تجميع الردود

التجميع هو عندما تريد أداء مهام متوازية مختلفة على أجزاء مختلفة من البيانات وتجميع النتائج لإنتاج المخرجات النهائية. فعلى سبيل المثال، يمكنك توجيه النموذج إلى وإجراء عملية واحدة على الجزء الأول من البيانات، وإجراء عملية أخرى على باقي البيانات وتجميع النتائج.

ملخّص

  • قسِّم التعليمات المعقّدة إلى مطالبة لكل إرشاد وحدِّد الطلب الذي تريد تنفيذه استنادًا إلى إدخال المستخدم.
  • تقسيم عدة خطوات تسلسلية إلى مطالبات منفصلة وسلاسلها بحيث يكون الناتج في المطالبة السابقة مدخلات المطالبة التالية.
  • حلِّل المهام المتوازية وجمِّع الردود لإنتاج المخرجات النهائية.

تجربة قيم مَعلمات مختلفة

يتضمن كل استدعاء ترسله إلى أحد النماذج قيمًا للمعلمات التي تتحكم في كيفية إنشاء النموذج الرد. يمكن أن ينتج عن النموذج نتائج مختلفة لقيم مختلفة للمعلَمات. إجراء التجارب مع قيم المعاملات المختلفة للحصول على أفضل القيم للمهمة. المعلمات المتاحة قد تختلف النماذج المختلفة. المعلمات الأكثر شيوعًا هي التالية:

  • الحد الأقصى للرموز المميزة للمخرجات
  • درجة الحرارة
  • أعلى درجة
  • قمة P

الحد الأقصى للرموز المميزة للمخرجات

يشير إلى الحد الأقصى لعدد الرموز المميّزة التي يمكن إنشاؤها في الردّ. الرمز المميز عبارة عن أربعة أحرف تقريبًا. يشير 100 رمز إلى 20 كلمة تقريبًا.

حدِّد قيمة أقل للردود الأقصر وقيمة أعلى للردود الأطول. الردود.

درجة الحرارة

وتُستخدم درجة الحرارة لأخذ العينات أثناء توليد الاستجابة، وهو ما يحدث عند تطبيق topP وtopK. أدوات التحكّم في درجة الحرارة درجة العشوائية في اختيار الرمز. تناسب درجات الحرارة المنخفضة الطلبات التي تتطلب قدرًا أكبر من الحتمية وأقل انفتاحًا أو إبداعًا استجابة، بينما يؤدي ارتفاع درجات الحرارة إلى إنشاء محتوى أكثر تنوعًا أو إبداعًا نتائجك. درجة الحرارة التي تبلغ 0 حاسمة، ما يعني أنّ قيمة يتم دائمًا تحديد أعلى احتمالية.

في معظم حالات الاستخدام، جرِّب البدء بدرجة حرارة تبلغ 0.2. في حال حذف يعرض النموذج استجابة عامة جدًا أو قصيرة جدًا أو يعطي النموذج استجابة احتياطية، يُرجى زيادة درجة الحرارة.

أعلى درجة

تُغيّر هذه القيم كيفية اختيار النموذج للرموز المميّزة للمخرجات. أعلى كيلو من 1 يعني أن الرمز المميّز التالي الذي تم اختياره هو الأكثر احتمالاً من بين جميع محددة في مفردات النموذج (وتسمى أيضًا فك الترميز الجشع)، في حين أن الجزء العلوي من يعني "3" أنّه يتم اختيار الرمز المميّز التالي من بين الرموز الثلاثة الأكثر الرموز المحتملة باستخدام درجة الحرارة.

ولكل خطوة من خطوات اختيار الرمز المميّز، يجب أن تكون الرموز المميزة ذات أعلى ألف أخذ عينات من الاحتمالات. ثم تتم تصفية الرموز المميزة بشكل أكبر بناءً على أعلى P مع الرمز المميز النهائي المحدد باستخدام عينات درجة الحرارة.

حدِّد قيمة أقل للردود العشوائية الأقل وقيمة أعلى للحصول على المزيد من الردود. إجابات عشوائية. أعلى قيمة تلقائية هي 40.

قمة P

يغيّر الجزء العلوي-P كيفية اختيار النموذج للرموز المميّزة للمخرجات. تم اختيار الرموز المميّزة من الأعلى (انظر أعلى ك) إلى الأقل احتمالاً حتى يتم جمع الاحتمالات قيمة أعلى P. على سبيل المثال، إذا كانت الرموز المميزة A وB وC لها احتمالية 0.3 و0.2 و0.1 وأعلى قيمة P هي 0.5، وعندئذٍ سيجري النموذج حدد A أو B كرمز مميز تالٍ باستخدام درجة الحرارة مع استبعاد C على أنها المرشح.

حدِّد قيمة أقل للردود العشوائية الأقل وقيمة أعلى للحصول على المزيد من الردود. إجابات عشوائية. أعلى الصفحة التلقائية هي 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]

الردود الاحتياطية

الاستجابة الاحتياطية هي استجابة يعرضها النموذج عند توجيه المطالبة أو الاستجابة تؤدي إلى تشغيل عامل تصفية الأمان. مثال على الإجابة الاحتياطية "لا يمكنني المساعدة في ذلك، حيث أنا مجرد نموذج لغوي".

إذا استجاب النموذج باستجابة احتياطية، جرِّب زيادة درجة الحرارة.

ما يجب تجنبه

  • تجنَّب الاعتماد على نماذج لإنشاء معلومات وقائعية.
  • يجب استخدامها بحرص في حلّ المسائل الرياضية والمنطقية.

الخطوات التالية