Learn AI An open course in artificial intelligence
Language: English

Module 06 / 17

Basic Prompt Engineering

The art of interacting with generative AI like ChatGPT for maximum results.

Level: Beginner Duration: 15 min

01 What is Prompt Engineering?

Prompt Engineering is the skill of designing, optimizing, and structuring instructions (prompts) given to Generative AI models (such as LLMs) to produce relevant, accurate, and user-desired outputs.

02 Core Prompting Principles

  1. Be Clear and Specific: Avoid ambiguity.
  2. Provide Context: Tell the AI what role to play (e.g., "Act as a marketing expert").
  3. Specify Output Format: Ask the AI to respond in a specific format (table, list, bullet points).
  4. Limit Scope: Explain what the AI should NOT do.

03 Advanced Prompting Techniques

Zero-shot Prompting: Asking AI to perform a task without giving any examples.

Few-shot Prompting: Providing one or more output examples so the model understands the desired pattern.

Chain of Thought (CoT): Asking the model to explain its thinking step by step ("Let's think step by step") before giving the final answer.

Open the interactive version with quiz and progress