Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ What is Prompt Engineering? | Foundations of Prompt Engineering
Prompt Engineering Basics

bookWhat is Prompt Engineering?

メニューを表示するにはスワイプしてください

Note
Definition

Prompt is the input or instruction given to an AI model to elicit a response.

Note
Definition

Prompt engineering is the process of crafting, testing, and refining prompts to optimize AI-generated results.

Prompt engineering is the practice of designing and refining instructions (prompts) to guide large language models (LLMs) toward producing useful, relevant, and accurate outputs. A prompt is the input text or question you give to an AI model, and its quality directly affects the AI's response.

Prompt engineering is essential because LLMs respond to the instructions they are given. Clear, well-structured prompts help the AI understand your intent.

Example of an effective prompt:

  • Summarize the main points of the following article in three bullet points;
  • List three benefits of regular exercise for adults;
  • Rewrite the following sentence to make it more formal;
  • Generate a Python function that calculates the factorial of a number.

Example of a poor prompt:

  • Tell me about this;
  • Explain;
  • Write something interesting;
  • Code it.

The first set of prompts is specific and clear, while the second set is vague and may lead to unfocused responses.

Note
Note

Always consider what information the AI needs to generate the best response. The more precise your prompt, the better the output.

question mark

Which of the following best describes prompt engineering?

正しい答えを選んでください

すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 1.  1

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

セクション 1.  1
some-alt