לתת למודל הוראות לגבי מה לעשות זו דרך יעילה ופשוטה להתאים אישית את התנהגות המודל. ההוראות צריכות להיות ברורות, תמציתיות וישירות, ולספק את ההקשר הדרוש ולתאר את הפלט הרצוי. ההוראות יכולות להיות פשוטות כמו רשימה של הוראות מפורטות, או מורכבות כמו מיפוי של חוויית המשתמש והלך הרוח שלו.
איך כותבים הוראות אפקטיביות
הוראות יעילות מבוססות על העקרונות הבאים:
- אומרים למודל מה לעשות.
- התיאור צריך להיות ברור וספציפי.
- מציינים אילוצים או דרישות פורמט לגבי הפלט.
דוגמה
לדוגמה, נניח שיש לכם מסעדה שמוכרת המבורגרים עם גבינה, ואתם רוצים להשתמש במודל כדי לגלות אילו מנות בתפריט הן הכי פופולריות. אתם רוצים שהמודל יפרמט תמלילים של הזמנות לקוחות ב-JSON כדי שתוכלו לזהות במהירות פריטים בתפריט. בטבלאות הבאות מוצגות תשובות שונות שהמודל מספק כשנותנים לו הוראות כלליות והוראות ספציפיות שמתבססות על עקרונות ההוראות:
| הוראות כלליות |
|---|
Extract the transcript in JSON.
Transcript:
Speaker 1 (Customer): Hi, can I get a cheeseburger and large fries, please?
Speaker 2 (Restaurant employee): Coming right up! Anything else you'd like to add to your order?
Speaker 1: Hmmm, maybe a small orange juice. And could I get the fries with ketchup on the side?
Speaker 2: No problem, one cheeseburger, one large fries with ketchup on the side, and a small
orange juice. That'll be $5.87. Drive through to the next window please.
{
"speakers": [
{
"speaker": "Customer",
"utterances": [
"Hi, can I get a cheeseburger and large fries, please?"
]
},
{
"speaker": "Restaurant Employee",
"utterances": [
"Coming right up! Anything else you'd like to add to your order?"
]
},
{
"speaker": "Customer",
"utterances": [
"Hmm, maybe a small orange juice. And could I get the fries with ketchup on the
side?"
]
},
{
"speaker": "Restaurant Employee",
"utterances": [
"No problem, one cheeseburger, one large fries with ketchup on the side, and a
small orange juice. That'll be $5.87. Drive through to the next window please."
]
}
]
}
|
| הוראות ספציפיות |
|---|
Extract the items from this transcript in JSON and separate drinks from food.
Transcript:
Speaker 1 (Customer): Hi, can I get a cheeseburger and large fries, please?
Speaker 2 (Restaurant employee): Coming right up! Anything else you'd like to add to your order?
Speaker 1: Hmmm, maybe a small orange juice. And could I get the fries with ketchup on the side?
Speaker 2: No problem, one cheeseburger, one large fries with ketchup on the side, and a small
orange juice. That'll be $5.87. Drive through to the next window please.
{
"drinks": [
"orange juice"
],
"food": [
"cheeseburger",
"large fries"
]
}
|
בעזרת העקרונות של כתיבת הוראות, הדוגמה הזו השתנתה מתשובה שהכילה יותר מדי נתונים לתשובה שהכילה בדיוק את הנתונים שנדרשים לתרחיש השימוש הזה. הנחיות שמבוססות על עקרונות ההנחיה יכולות לעזור לכם להנחות את המודל כדי לקבל את התשובה הכי מועילה לתרחיש השימוש שלכם.