ChatGPT official: six prompt optimization strategies to make answers more accurate

1. The clearer the task description, the better

(1) The more specific and clear the prompt is, the better.

(2) LetChatGPTTo play a professional role

(3) Use separators to clearly distinguish which are output requirements and which are reference content in the prompt.

(4) Specify the steps required to complete the task

(5) Provide an example of the final output

(6) Specify the required output content length

ChatGPT official: six prompt optimization strategies to make answers more accurate

2. Provide reference materials

(1) Provide reference materials for the model, similar to reading comprehension.

(2) The model is required to directly quote the original text in the reference material.

ChatGPT official: six prompt optimization strategies to make answers more accurate

3. Split complex tasks into steps or subtasks

(1) Use intent classification to identify the instructions most relevant to the user’s query

(2) For long conversations, make an appropriate summary or filter in the next prompt to avoid going off topic

(3) For long documents, summarize and split the document. Construct the document summary in a recursive way.

ChatGPT official: six prompt optimization strategies to make answers more accurate

4. Let GPT think more

(1) Tell the model not to rush to give the correct answer.

(2) Allow the model to hide its thinking or reasoning process.

(3) Ask the model directly: “Did you miss anything in your answer?”

ChatGPT official: six prompt optimization strategies to make answers more accurate

5. Use external tools

(1) Allow the model to use external information sources in the prompt and use Embeddings to achieve efficient search

(2) Use code or call external API to obtain more accurate calculation results

(3) Allow the model to execute function calls

ChatGPT official: six prompt optimization strategies to make answers more accurate

6. Systematic experiments, continuous trial and error, and optimization

(1) Refer to a gold standard answer to evaluate the model output

ChatGPT official: six prompt optimization strategies to make answers more accurate

statement:The content is collected from various media platforms such as public websites. If the included content infringes on your rights, please contact us by email and we will deal with it as soon as possible.
TutorialEncyclopedia

Fal.ai Camera real-time AI face-changing, input the name and turn into various celebrities in seconds

2023-12-20 15:54:59

TutorialEncyclopedia

It’s great to use ChatGPT to automatically analyze stocks!

2023-12-25 9:38:24

Search