Hello everyone, I am Xiao❤, a 985 non-scientific programmer who has been wandering in the world for many years. I have worked as a backend development engineer in state-owned enterprises, large Internet companies and start-up companies. .
I was at home last weekend and it was raining outside, so I wanted to know the weather conditions in the past few days.
It happened that my phone was charging, so I planned to ask the smart speaker Xiaoyi, but by chance, I opened my mouth and blurted out: "Xiaoyi, Xiaoyi, is the weather nice?"
As a result, it said to me: "Whether it's sunny or rainy, I hope you can have a good life every day!" Similar dilemma. Although these AIs possess higher levels of intelligence, they also require clear instructions to ensure correct operation.
Let’s take a look at some tips for writing prompts so that AI can not only report the weather to us, but also tell us a joke.
2. Clarity and Precision
PictureAI is a knowledge base
It immediately replied: "The air is humid, is this just a little water?"
Friends, do you understand? AI may be smart, but it needs clear instructions.
Give “straight AI” some patience
For another example, I said to it: “Tell me a joke.” It came back to me: "A programmer went into a bar and... something went wrong". Yes, AI’s logic is linear and it doesn’t know how to beat around the bush.
Therefore, the communication must be clear to the point, for example: "Provide a humorous story where the protagonist is a programmer and a funny encounter in a bar." In this way, AI can give specific results.
Make good use of punctuation marks
Poor effect ❌:
Summarize the following text to summarize some of the most critical points.
{text input here}
Better effect ✅:
Summarize the following text to summarize a few of the most critical points.
Text: """{text input here}"""
Making good use of the delimiters supported by AI itself can make it easier for the model to understand our intentions.
AI is like a child in the growing stage. It is told that "if you want something, you must state clearly what you want." You do not deny its curiosity, but you must also guide it to understand.
Accuracy is not an optional courtesy, but an indispensable cornerstone of effective communication.
3. Step-by-step construction
Interacting with AI is like cooking a complicated dish, you have to follow the steps.
An AI that knows too much may not necessarily understand you
Later I tried to put it another way: "Let's set the scene first. An astronaut is floating outside the space station. The first step is to describe the earth he sees; the second step is to talk about it. His little story of being lost in space.”
This time, it told me an interesting and vivid story about an astronaut looking at the blue planet and accidentally touching the jetpack and drifting.
The step-by-step construction of rules not only allows AI to understand our requirements better, but also makes AI’s answers layered, just like an upgraded version of music, changing from a single note to a rhythmic melody.
Let AI gradually reveal its full picture. The step-by-step construction is not only a guide to it, but also the art of organizing complex information.
4. Situation & Role Simulation
Picture
Time Traveler’s Letter
In this way, AI not only grasps the instructions for writing letters, but also simulates content with a more historical atmosphere and expected scenarios based on the time traveler character you create, making the entire text more relevant. Real world details.
Similarly, you can also set a role for the AI. For example, if you need to obtain interview experience at some major Internet companies, you can tell it at the beginning of the prompt:
You are a senior backend developer, proficient in...[Character background]
Now the question is [Input question]
You need to tell me...[ What is the goal]
The requirements are... [What are the requirements].
Scenario and role simulation are not only storytelling techniques, but also a shortcut to efficient communication.
Providing AI with a specific case can significantly improve the accuracy of its execution of instructions.
Just like teaching difficult problems to mathematics beginners, a clear mathematical example can make the process of understanding and solving problems twice the result with half the effort.
I once asked AI to help me generate a strategic recommendation about marketing. I started by saying: "Write a marketing strategy."
As a result, everyone must have guessed it. AI gave a very general answer.
Later, I provided a specific competitive product analysis report, and then said: "Based on this analysis report, write a customized marketing strategy for a start-up technology company that wants to increase its market share. ".
As a result, AI used specific examples to output a detailed and creative strategy.
The example-guided method allows AI to be better anchored in specific situations and apply general theories to specific scenarios.
Interactive feedback is the catalyst for AI learning progress.
Just like communicating with a plant, we need to constantly prune and guide it, and the same is true for AI. Initially, I asked the AI to give some suggestions on how to be more productive, and it gave me some basic time management tips.
Although these are useful, they are not comprehensive.
So I started to give feedback and pointed out that I wanted to have a deeper understanding of the psychological impact and so on. After several rounds of feedback, the suggestions given by AI are not only more suitable for my needs, but also incorporate multi-dimensional considerations such as mental health.
Interaction and feedback allow AI to better adjust output and meet user needs more accurately.
Recent AI progress is exciting, but we should also realize that just like human learning, AI also needs to be step-by-step.
Expecting AI to give perfect results the first time is as unrealistic as wanting a toddler to run a marathon right away.
When using AI, we can gradually increase the complexity of the task. For example, when writing an article on AI, I will start with simple concepts, then gradually deepen into more complex theories, and finally point to practical applications.
Through continuous practice, AI is like a human mind accustomed to solving complex problems, allowing its capabilities to mature through constant challenges.
There are many articles explaining prompt, and the six principles mentioned in the article are not static.
To provide a strong starting point for collaboration with AI, we need to always remember that good communication and clear instructions are key for large models to realize their powerful potential.
As large models become more mature, more engineers who are proficient in writing prompts may emerge in the future. Their goal is to use these principles to break the boundaries of communication between humans and AI and make complex technical expressions become Be close to the people and be productive.
At present, large models can not only be used as development assistants, but can also be used to edit resumes, write advertisements, and write papers. AIGC in another similar field can already draw beautiful pictures. Judging from sora released last month, AI can also generate 60s process videos, and the quality is quite good.
The birth of these AI tools may bring about earth-shaking changes in many industries.
In cooperation with AI, giving a precise, direct and detailed prompt is like giving a clear order on a detailed menu, allowing the AI, the chef, to do a better job Understand the needs of human beings and prepare a rich intelligent feast for us!
The above is the detailed content of Prompts are to AI as menus are to chefs. For more information, please follow other related articles on the PHP Chinese website!