Official best practices for writing effective prompts for GPT models, including GPT-4 and GPT-5 series
View Official DocumentationHow do I add numbers in Excel?
How do I add up a row of dollar amounts in Excel? I want to do this automatically for a whole sheet of rows with all the totals ending up on the right in a column called "Total".
The detailed prompt specifies the exact context (dollar amounts, whole sheet, column name) helping the model deliver precisely what you need.
Summarize this meeting transcript.
Summarize the meeting transcript in a single paragraph. Then write a markdown list of the speakers and each of their key points. Finally, list the next steps.
Specifying the structure and format ensures consistent, usable output.
Use the provided articles delimited by triple quotes to answer questions. If the answer cannot be found in the articles, write "I could not find an answer." """<insert articles>"""
This constrains the model to use only provided information, preventing hallucination.
First, classify the customer query into one of these categories: [Billing, Technical Support, Account Management, General Inquiry]. Then provide the appropriate response based on the category.
Breaking the task into classification then response improves accuracy for each step.
First, work out your own solution to the problem step by step. Then compare your solution to the student's solution and evaluate if the student's solution is correct or not. Do not decide if the student's solution is correct until you have done the problem yourself.
Having the model solve independently first leads to more accurate evaluations than jumping straight to judgment.
Write Python code to calculate this, then run it: What is the 123rd Fibonacci number?
For precise calculations, having the model write and execute code is more reliable than mental math.