🗒️learning prompting
2024-4-20
| 2024-7-4
0  |  阅读时长 0 分钟
type
status
date
slug
summary
tags
category
icon
password
💡

📝 What is prompt

 
Prompt is the natural language text describing the task that an AI should perform.Prompting engineer is the process of structuring an instruction that can be interpreted and understood by a generative AI model. —wikipedia
 

clear and specific

 

assign the role to the ChatGPT

From my view, the prompt is a description to guide AI to preciser answer. How to get a good promt? It's a process of constant experimentation.
I use prompt to create a Apple developer teacher to help me study and develop Application. This is the conclusion from my practice
  • use second person
  • clear guide
    • The type of question
    • The corresponding answer structure to the specified question type
 

analogy

I’m try to develop a MacOS application. If you don’t know how to describe your requirement. You can try analogy.
This is a example.
suppose you plan to develop a Todo List application.
You can tell the robot, you want to develop the application which is similar to the todo application in the iPhone. Could you give me a example?
 
  • Instruction:clear and specific
  • Context:act as
  • input data:
  • out put indicator:
 
Few-shot prompting
 
Let’s think step by step
 
These are the best practice from poe creater.

Best practices for text generation prompts

Address the bot in second person instead of third person.
Be as clear as possible to reduce the room for mis-interpretation.
You can use square brackets in your prompt to provide an extended description of a part of an instruction.
Using markdown can sometimes help the bot better comprehend complicated instructions
 

Conclusion

 

Reference

Prompt-Engineering-Guide
dair-aiUpdated Jul 4, 2024
 
  • AI
  • The Science of SleepBasic SQL Usage
    Loading...
    目录