0
هناك أوقات قد لا يؤدي فيها طلب شيء ما من النموذج بشكل مباشر إلى أفضل نتيجة. في هذه الحالة، قد ترغب في محاولة تقسيم الخطوات بنفس الطريقة التي ستؤدي بها الإجراء بنفسك.
على سبيل المثال، لنفترض أن لديك قصة كبيرة مكتوبة باللغة الإنجليزية وتريد الحصول على الأسماء وعدد الأسماء التي ظهرت في القصة. لكنك تريد كتابة الأسماء باللغة الفرنسية. الآن، هناك طريقتان لكتابة هذا الموجه، أي إما السؤال بشكل مباشر عن هذا على سبيل المثال:
Give me a JSON object with following keys: `nouns_count` number of nouns appeared in story and `nouns_french` which is an array of nouns in french. The story is delimited by """.
"""In a charming village, siblings Jack and Jill set out on a quest to fetch water from a hilltop well. As they climbed, singing joyfully, misfortune struck—Jack tripped on a stone and tumbled down the hill, with Jill following suit. Though slightly battered, the pair returned home to comforting embraces. Despite the mishap, their adventurous spirits remained undimmed, and they continued exploring with delight."""
النتيجة من هذا الموجه هي:
{
"nouns_count": 10,
"nouns_french": [
"village",
"siblings",
"Jack",
"Jill",
"quest",
"water",
"hilltop",
"well",
"stone",
"hill"
]
}
كما ترى، الأسماء ليست باللغة الفرنسية. ومع ذلك، إذا أعدنا كتابة موجهنا على النحو التالي:
Perform the following steps on the story delimited by """".
Step 1. Translate it to French
Step 2. List each noun in the translation.
Step 3. Output the JSON object with `nouns_count` number of nouns in french story and `nouns_french` i.e. array of nouns appeared in translation.
Output the JSON only, I am not interested in the rest of the steps.
"""In a charming village, siblings Jack and Jill set out on a quest to fetch water from a hilltop well. As they climbed, singing joyfully, misfortune struck—Jack tripped on a stone and tumbled down the hill, with Jill following suit. Though slightly battered, the pair returned home to comforting embraces. Despite the mishap, their adventurous spirits remained undimmed, and they continued exploring with delight."""
سيتم إخراج ما يلي بشكل صحيح
{
"nouns_count": 10,
"nouns_french": [
"village",
"frères",
"Jack",
"Jill",
"quête",
"eau",
"sommet de la colline",
"bien",
"pierre",
"colline"
]
}