پرامپت (prompt) چیست؟
کلمه prompt در زبان انگلیسی چندین معنی دارد.
معنی کلمه prompt
ما در دوره زبان انگلیسی، دو معنی کلمه prompt را یاد میگیریم. برای مثال، در ترم چهارم، prompt یک صفت است به این معنی:
done or acting quickly and without waiting, or arriving at the correct time
در جملات زیر این صفت را داریم:
prompt payment
a prompt reply
His prompt action certainly saved my life.
یک معنی دیگر prompt این است:
to make someone decide to say or do something
در اینجا پرامپت، یک فعل است.
What prompted you to say that?
I don’t know what prompted him to leave.
پرامپت و هوش مصنوعی
اما هنگام کار با مدلهای زبانی مانند ChatGPT یا لاما، پرامپت معنی خاص و متفاوتی دارد.
پرامپت هر چیزی است که کاربر به ChatGPT میگوید.

بدیهی است که ما نمیتوانیم با زبان کامپیوتر (یعنی کدهای ۰ و ۱) و سرویسهای مختلف از جمله ChatGPT صحبت کنیم.

بنابراین این سرویسها باید زبان ما را بفهمند. اینجاست که پرامپت معنی پیدا میکند.
به دستورالعملها و سوالاتی که به زبان طبیعی (غالباً زبان انگلیسی)، به این سرویسها میدهیم، پرامپت گفته میشود.

بنابراین هر چیزی که ما در محیط ChatGPT یا سرویسهای مشابه وارد میکنیم، پرامپت است.

هر چقدر تلاش کنیم که پرامپتهای بهتری وارد کنیم، جوابهای بهتری دریافت خواهیم کرد. بنابراین باید مهارت نوشتن پرامپتهای خوب را کسب کنیم.

اینجاست که مهندسی پرامپت یا prompt engineering به عنوان یک مهارت ارزشمند باعث میشود که بتوانیم از پتانسیل حیرت انگیز ChatGPT و سرویسهای مشابه به خوبی استفاده کنیم.

اهمیت این موضوع در حدی است که برخی شرکتها دنبال پوزیشن شغلی مهندس پرامپت (Prompt Engineer) هستند تا از حداکثر پتانسیلهای مدلهای زبانی استفاده کنند.

برای یادگیری بهتر پرامپت نویسی، روش ما این است که از پرامپتهای بسیار ساده شروع میکنیم و کم کم آن را کاملتر میکنیم تا سناریوها و کاربردهای مختلفی را بررسی کنیم.

معمولا هنگامی که وارد محیط ChatGPT یا هر LLM دیگری شویم، تعدادی prompt پیشنهادی برای شروع به ما نشان داده میشود:

البته ممکن است هر بار پس از ورود این promptها تغییر کنند:

اینها صرفاً پیشنهاداتی هستند که میتوانیم از آنها ایده یا الهام بگیریم.
تمرین
پرامپت زیر را به chatGPT یا سرویس مشابه دیگری بدهید و جوابی که میگیرید را اینجا کامنت کنید.
“Can you provide three examples of sentences using the past simple tense to describe past events?”

بازگشت به: نوشتن اولین پرامپت
Certainly! Here are three examples of sentences using the past simple tense:
۱. **She visited her grandparents last weekend.**
2. **The train arrived late yesterday evening.**
3. **They played soccer in the park after school.**
تمرین این درس رو به chatGPT دادم
و پاسخ داد:
1. I starred in the classic film “Some Like It Hot” in 1959.
2. I married Joe DiMaggio in 1954, but we divorced after just nine months.
3. I was born Norma Jeane Mortenson on June 1, 1926.
قبل از اینکه تمرین این درس رو انجام بدم،
جالب بود برام
همین تعریف prompt که در اینجا صفت هست، همینو به chatGPT دادم:
done or acting quickly and without waiting, or arriving at the correct time
پاسخش این بود:
Being quick to act and arriving on time are important qualities in both life and on screen. As an actress, I understood the importance of being responsive and punctual in order to deliver my best performance. It’s about being on the mark and ready to go when the director calls action. In life, being decisive and punctual can also help in staying ahead and handling situations effectively.
❇️ChatGPT
Sure! Here are three examples of sentences using the past simple tense to describe past events:
۱. She visited her grandmother last weekend.
2. They watched a movie together last night.
3. He finished his homework before dinner.
❇️Gemini
1. She **went** to the store yesterday.
2. They **played** soccer in the park last weekend.
3. I **ate** pizza for dinner last night.
❇️Pi
Certainly! Here are three example sentences using the past simple tense to describe past events:
۱. Last year, I traveled to Italy and visited the Colosseum in Rome. (This sentence describes a completed action in the past, which occurred last year.)
2. My grandmother baked the most delicious chocolate chip cookies for our family gatherings. (The past simple tense is used to describe a habitual action that took place in the past.)
3. She won the school’s spelling bee competition three years in a row. (This sentence talks about an accomplishment that occurred in the past and is now finished.)
In each example, the past simple tense is used to describe actions or events that have already happened and have a definite beginning and end in the past.
Sure! Here are three examples of sentences using the past simple tense to describe past events:
“She visited her grandparents last weekend.”
“They watched a movie together on Friday night.”
“He completed his homework before dinner.”
Hey there, great to meet you. I’m Pi, your personal AI.
My goal is to be useful, friendly and fun. Ask me for advice, for answers, or let’s talk about whatever’s on your mind.
How’s your day going?
I’m excited to explore a new topic with you. What would you like to learn about?
“Can you provide three examples of sentences using the past simple tense to describe past events?”
Of course! Here are three examples of sentences using the past simple tense to describe past events:
Last year, I visited Paris and saw the Eiffel Tower.
She read a fascinating book about artificial intelligence.
Our team won the championship game last weekend.
These sentences use the past simple tense to describe completed actions that took place in the past.
pi
https://pi.ai/talk
Certainly! Here are three examples of sentences using the past simple tense to describe past events:
She visited her grandparents last weekend.
He finished his homework before dinner.
They traveled to Paris for their honeymoon.
Sure! Here are three examples of sentences using the past simple tense to describe past events:
۱. **”She visited the museum last Saturday.”**
2. **”They watched a movie together last night.”**
3. **”He finished his homework before dinner.”**
Each of these sentences describes a completed action that took place at a specific time in the past.
Certainly! Here are three examples of sentences using the past simple tense to describe past events:
She visited her grandparents last weekend.
We watched a movie together yesterday evening.
He finished his homework before dinner.
In each of these sentences, the past simple tense (visited, watched, finished) is used to indicate actions or events that occurred and were completed in the past.
Copilot:
Certainly! Here are three examples using the simple past tense to describe completed actions in the past:
Affirmative Sentence:
“John baked a cake.”
“They painted the fence.”
Negative Sentence:
“I didn’t leave the house.”
“He didn’t come with us.”
Interrogative Sentence (Yes/No Question):
“Did you hear the news?”
“Did the Martians land near the aqueduct?”
Remember, the simple past tense is formed by using the base form of the verb with appropriate endings (e.g., “jumped,” “painted”). If you have any more questions, feel free to ask!
“Can you provide three examples of sentences using the past simple tense to describe past events?”
ChatGPT
Sure! Here are three examples of sentences using the past simple tense:
“I visited the zoo last weekend.”
“She baked a delicious cake yesterday.”
“They played soccer after school.”
.
Certainly! Here are three sentences using the past simple tense to describe past events:
“Yesterday, I visited the museum and learned a lot about ancient history.”
“Last week, she baked a delicious chocolate cake for her friend’s birthday.”
“They went to the beach last summer and enjoyed swimming in the ocean.”
Certainly! Here are three examples of sentences using the past simple tense:
۱. **Affirmative Sentence:**
– “I **walked** to the store yesterday.”
– This sentence describes a completed action in the past (walking to the store) at a specific time (yesterday).
۲. **Negative Sentence:**
– “She **didn’t want** money.”
– Here, the negative form “didn’t” is added before the verb “want” to express that she had no desire for money.
۳. **Question Sentence:**
– “**Did** you **watch** a movie?”
– In this question, we use “did” at the beginning and keep the verb “watch” in its infinitive form to inquire about a past event.
Feel free to ask if you need more examples or have any other questions! 😊