Codecademy Logo

Prompt Engineering with ChatGPT

Related learning

  • Learn the basics of generative AI and best prompt engineering practices when using AI chatbots like ChatGPT to create new content.
    • Includes 6 Courses
    • With Certificate
    • Beginner Friendly.
      5 hours

Understanding Prompt Engineering

Prompt engineering is about crafting effective prompts to optimize interactions with AI assistants. It ensures AI assistants generate helpful and accurate responses based on the input provided.

Understanding Prompts

A prompt is a text-based instruction that communicates with large language models (LLMs). It determines both the content and the direction of the model’s output, shaping how the AI assistant responds.

LLM Overview

In prompt engineering, a large language model (LLM) is an artificial intelligence system trained on a vast amount of data to recognize patterns and generate human-like responses. It works by processing prompts and producing outputs based on what it has learned.

Effective Prompt Design

Effective prompts are key to extracting valuable insights from large language models (LLMs). They should clearly outline the task, provide context, and specify requirements. This increases the relevance and utility of the generated responses.

Prompt Engineering Tips

Changing the words, phrases, or structure of prompts, even when the goal stays the same, can lead to different responses from the large language models (LLMs). These differences affect how the model understands and generates a response.

Understanding Prompt Types

In prompt engineering, types of prompts include instructional, contextual, comparative, and iterative. Each type uniquely influences the output of a language model based on how the prompt is structured.

Learn more on Codecademy

  • Learn the basics of generative AI and best prompt engineering practices when using AI chatbots like ChatGPT to create new content.
    • Includes 6 Courses
    • With Certificate
    • Beginner Friendly.
      5 hours