search
HomeTechnology peripheralsAIPrompts are to AI as menus are to chefs

1. Introduction

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

First of all, instructions must be clear, just as important as defining variables in programming. Ambiguous instructions, like ambiguous variable names, can lead to difficulty in understanding and errors.

PicturePrompts are to AI as menus are to chefsAI is a knowledge base

For example, when we want to chat with AI, I say to it: "Give it to me A little water”.

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

Prompts are to AI as menus are to chefsFor 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

In conversations, we can not only customize delimiters, but also use LLM's own punctuation to write more concise and clear prompts, such as the sample documents in OpenAI .

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

If you want AI to render a 3D image of the Mona Lisa, you can divide it into steps. First explain the difference between 2D and 3D, and then explain the Mona Lisa. characteristics, and finally combine the two.

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

For example, once I said to the AI: "Tell the story of an astronaut in space." It ended up giving me a list of specialized spacecraft terms. It suddenly dawned on me that this was like explaining how to cook to a novice and starting by directly telling him to learn molecular cooking. It was too avant-garde and skipped too many steps.

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

Use conditional simulation to create foreshadowing of real situations, which can help AI build context and enhance understanding.

PicturePrompts are to AI as menus are to chefs


Time Traveler’s Letter

For example, if you need AI To help you write a letter, you can give instructions like this: "I am a time traveler and I need to write a letter to myself in 1945, telling me that it will rain heavily tomorrow."

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.

Role Play

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.

5. Close to the example

Providing AI with a specific case can significantly improve the accuracy of its execution of instructions.

Inspiration from Mathematics Problems

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.

6. Interactive feedback

Interactive feedback is the catalyst for AI learning progress.

Cultivating Intelligent Plants

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.

7. Step-by-step

Recent AI progress is exciting, but we should also realize that just like human learning, AI also needs to be step-by-step.

Take your time, make progress faster

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.

8. Summary

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!

Statement
This article is reproduced at:51CTO.COM. If there is any infringement, please contact admin@php.cn delete
An easy-to-understand explanation of how to create a VBA macro in ChatGPT!An easy-to-understand explanation of how to create a VBA macro in ChatGPT!May 14, 2025 am 02:40 AM

For beginners and those interested in business automation, writing VBA scripts, an extension to Microsoft Office, may find it difficult. However, ChatGPT makes it easy to streamline and automate business processes. This article explains in an easy-to-understand manner how to develop VBA scripts using ChatGPT. We will introduce in detail specific examples, from the basics of VBA to script implementation using ChatGPT integration, testing and debugging, and benefits and points to note. With the aim of improving programming skills and improving business efficiency,

I can't use the ChatGPT plugin function! Explaining what to do in case of an errorI can't use the ChatGPT plugin function! Explaining what to do in case of an errorMay 14, 2025 am 01:56 AM

ChatGPT plugin cannot be used? This guide will help you solve your problem! Have you ever encountered a situation where the ChatGPT plugin is unavailable or suddenly fails? The ChatGPT plugin is a powerful tool to enhance the user experience, but sometimes it can fail. This article will analyze in detail the reasons why the ChatGPT plug-in cannot work properly and provide corresponding solutions. From user setup checks to server troubleshooting, we cover a variety of troubleshooting solutions to help you efficiently use plug-ins to complete daily tasks. OpenAI Deep Research, the latest AI agent released by OpenAI. For details, please click ⬇️ [ChatGPT] OpenAI Deep Research Detailed explanation:

Does ChatGPT not follow the character count specification? A thorough explanation of how to deal with this!Does ChatGPT not follow the character count specification? A thorough explanation of how to deal with this!May 14, 2025 am 01:54 AM

When writing a sentence using ChatGPT, there are times when you want to specify the number of characters. However, it is difficult to accurately predict the length of sentences generated by AI, and it is not easy to match the specified number of characters. In this article, we will explain how to create a sentence with the number of characters in ChatGPT. We will introduce effective prompt writing, techniques for getting answers that suit your purpose, and teach you tips for dealing with character limits. In addition, we will explain why ChatGPT is not good at specifying the number of characters and how it works, as well as points to be careful about and countermeasures. This article

All About Slicing Operations in PythonAll About Slicing Operations in PythonMay 14, 2025 am 01:48 AM

For every Python programmer, whether in the domain of data science and machine learning or software development, Python slicing operations are one of the most efficient, versatile, and powerful operations. Python slicing syntax a

An easy-to-understand explanation of how to use ChatGPT to create quotes!An easy-to-understand explanation of how to use ChatGPT to create quotes!May 14, 2025 am 01:44 AM

The evolution of AI technology has accelerated business efficiency. What's particularly attracting attention is the creation of estimates using AI. OpenAI's AI assistant, ChatGPT, contributes to improving the estimate creation process and improving accuracy. This article explains how to create a quote using ChatGPT. We will introduce efficiency improvements through collaboration with Excel VBA, specific examples of application to system development projects, benefits of AI implementation, and future prospects. Learn how to improve operational efficiency and productivity with ChatGPT. Op

What is ChatGPT Pro (o1 Pro)? Explaining what you can do, the prices, and the differences between them from other plans!What is ChatGPT Pro (o1 Pro)? Explaining what you can do, the prices, and the differences between them from other plans!May 14, 2025 am 01:40 AM

OpenAI's latest subscription plan, ChatGPT Pro, provides advanced AI problem resolution! In December 2024, OpenAI announced its top-of-the-line plan, the ChatGPT Pro, which costs $200 a month. In this article, we will explain its features, particularly the performance of the "o1 pro mode" and new initiatives from OpenAI. This is a must-read for researchers, engineers, and professionals aiming to utilize advanced AI. ChatGPT Pro: Unleash advanced AI power ChatGPT Pro is the latest and most advanced product from OpenAI.

We explain how to create and correct your motivation for applying using ChatGPT! Also introduce the promptWe explain how to create and correct your motivation for applying using ChatGPT! Also introduce the promptMay 14, 2025 am 01:29 AM

It is well known that the importance of motivation for applying when looking for a job is well known, but I'm sure there are many job seekers who struggle to create it. In this article, we will introduce effective ways to create a motivation statement using the latest AI technology, ChatGPT. We will carefully explain the specific steps to complete your motivation, including the importance of self-analysis and corporate research, points to note when using AI, and how to match your experience and skills with company needs. Through this article, learn the skills to create compelling motivation and aim for successful job hunting! OpenAI's latest AI agent, "Open

What's so amazing about ChatGPT? A thorough explanation of its features and strengths!What's so amazing about ChatGPT? A thorough explanation of its features and strengths!May 14, 2025 am 01:26 AM

ChatGPT: Amazing Natural Language Processing AI and how to use it ChatGPT is an innovative natural language processing AI model developed by OpenAI. It is attracting attention around the world as an advanced tool that enables natural dialogue with humans and can be used in a variety of fields. Its excellent language comprehension, vast knowledge, learning ability and flexible operability have the potential to transform our lives and businesses. In this article, we will explain the main features of ChatGPT and specific examples of use, and explore the possibilities for the future that AI will unlock. Unraveling the possibilities and appeal of ChatGPT, and enjoying life and business

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools