Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn 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?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 1

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Awesome!

Completion rate improved to 11.11

bookWhat is Prompt Engineering?

Swipe to show menu

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?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 1
some-alt