Beginner's Guide to Prompt Engineering

Written by
John Doe
公開日
2024-04-17

table of contents

Prompt Engineering is a technique for sharing strategies and tactics to achieve better results from large language models (also known as GPT models). Here, I will explain the basic ideas and specific methods for considering.

1. Write clear instructions

The model can't read your thoughts. If the output is too long, try asking for a brief answer. If the output is too simple, try asking for professional-level students. Also, if you don't like the format of the output, try considering the format you want. The less the model has to guess what you're looking for, the more likely it is that you'll get the results you're looking for.

2. Specify the steps to complete the task

Some tasks are best specified as a series of steps. By considering writing out the steps, it's considering for the model to follow them.

3. Provide an example

Generally general instructions are applicable to all examples and are more efficient than illustrating all variants of a task. However, in some cases it may be necessary to provide an example. This is called a “fuchot” prompt.

4. Specify the target length of the output

Can you ask the model to produce an output at a specific target length. The target output length can be specified by word count, sentence count, number of bullet points, etc.

5. Provide reference text

Can you provide models with reliable information and instructions to use that information to create answers.

6. Break complex tasks into subtasks

Just as it is good practice to break down a complex system into a series of modular components in software engineering, the same goes for the task of comprehension to a language model.

7. Give models time to “think”

You can get more reliable answers by giving the model time to come up with an answer rather than giving the model an answer right away. By understanding and understanding these strategies and tactics, we can have better results from well-known language models, and we will write an understanding article for understanding below.

Relation

関連記事

This is some text inside of a div block.

Full record of building the self-hosted AI agent “Moltworker” on Cloudflare

This is some text inside of a div block.
7 min read
This is some text inside of a div block.

I dissected all pages of the “Textbook on Psychological Manipulation” that arrived in the mail -- the invisible design of sales letters deciphered with behavioral economics

This is some text inside of a div block.
7 min read
This is some text inside of a div block.

Claude Code User Guide 2025 Latest Edition/From Introduction to Application

This is some text inside of a div block.
7 min read
This is some text inside of a div block.

Google's NotebookLM is finally integrated with Gemini, and AI research tools enter a new era

This is some text inside of a div block.
7 min read
This is some text inside of a div block.

Will Google's new weapon “Titans” dramatically change AI's memory? Approaching the mystery of long-term memory that surpasses Transformers

This is some text inside of a div block.
7 min read
This is some text inside of a div block.

Thorough explanation of how to use Google Antigravity | Towards an age where anyone can develop apps with AI

This is some text inside of a div block.
7 min read

Let's start with a free consultation

I'm very sorry. Our resources are limited, and in order to provide high quality services to each company, we are currently offering this special condition (full refund guarantee+free consultation), limited to [first 5 companies per month].

Furthermore, only for those who have applied for a free consultation, we will give you a free “competitor site analysis & improvement proposal report” usually worth 50,000 yen only for those who have applied for a free consultation.

There is a possibility that the slots will fill up quickly, so please apply as soon as possible.

I agree to the privacy policy and first conduct a free consultation
Thank you! Your submission has been received!
Oops! Something went long while appearing the form.