Skip to main content

Learning path

Prompt Engineering learning path: everything to study, topic by topic

Comprehensive prompt engineering assessment covering fundamentals of LLM interaction, advanced techniques like chain-of-thought and self-consistency, RAG architecture, evaluation and testing, agentic systems, and production deployment.

Short answer

To learn Prompt Engineering, work through 7 modules and 43 topics in the order they build on each other. It starts with Prompt Fundamentals, then moves on to Advanced Techniques and RAG & Retrieval Patterns. Use the map as a checklist, or measure your level and study only what is missing.

7
modules
43
topics
55
min to assess

What you will study

Topics are grouped by module. Open one to see its objectives and key concepts.

1 · Prompt Fundamentals7 topics
  • Zero-Shot Prompting

    Crafting effective prompts without examples, leveraging model knowledge through clear instructions, task framing, and constraint specification

    Objectives

    • Write zero-shot prompts that produce consistent results
    • Identify when zero-shot is sufficient vs when examples are needed

    Key concepts

    • task framing
    • instruction specificity
    • constraint specification
    • persona setting
    • output expectations
  • Few-Shot Prompting

    Using examples to guide model behavior, selecting representative examples, formatting exemplars, and managing example ordering effects

    Objectives

    • Design few-shot prompts with well-chosen examples
    • Understand how example count and ordering affect output quality

    Key concepts

    • exemplar selection
    • example ordering
    • demonstration format
    • label balance
    • k-shot selection
    • recency bias
  • Instruction Clarity

    Writing unambiguous instructions, decomposing complex tasks, using delimiters, specifying output length, and managing prompt structure

    Objectives

    • Write prompts with clear, unambiguous instructions
    • Structure complex prompts using delimiters and sections

    Key concepts

    • delimiters
    • step-by-step instructions
    • task decomposition
    • specificity vs generality
    • negative instructions
    • markdown formatting
  • Output Formatting

    Controlling model output format including JSON, XML, tables, markdown, and structured data extraction through prompt design

    Objectives

    • Enforce specific output formats through prompt design
    • Extract structured data from unstructured text via prompts

    Key concepts

    • JSON output
    • XML output
    • schema enforcement
    • format examples
    • structured extraction
    • response templates
  • Temperature & Sampling Parameters

    Understanding temperature, top-p, top-k, frequency penalty, presence penalty, and their effects on output creativity vs determinism

    Objectives

    • Choose appropriate sampling parameters for different tasks
    • Explain the trade-off between determinism and creativity

    Key concepts

    • temperature
    • top-p (nucleus sampling)
    • top-k
    • frequency penalty
    • presence penalty
    • max tokens
    • stop sequences
  • LLM Configuration & Model Selection

    Comparing major LLM providers (OpenAI, Anthropic, Google), understanding token economics, pricing tiers, context window sizes, and selecting the right model for different tasks

    Objectives

    • Compare major LLM providers and their key differentiators
    • Estimate costs and choose the right model tier for different tasks

    Key concepts

    • OpenAI/Claude/Gemini comparison
    • token economics
    • pricing tiers
    • context windows
    • model capabilities
  • Output Control

    Fine-grained control over LLM output using stop sequences, repetition penalty, frequency penalty, max tokens, top_p vs temperature interaction, and logit bias

    Objectives

    • Use stop sequences and penalties to control output behavior
    • Understand how top_p and temperature interact to shape generation

    Key concepts

    • stop sequences
    • repetition penalty
    • frequency penalty
    • max tokens
    • top_p vs temperature
    • logit bias
2 · Advanced Techniques7 topics
  • Chain-of-Thought Prompting

    Eliciting step-by-step reasoning from models, zero-shot CoT, manual CoT, and understanding when reasoning chains improve accuracy

    Objectives

    • Apply chain-of-thought to improve reasoning tasks
    • Distinguish tasks that benefit from CoT vs those that do not

    Key concepts

    • step-by-step reasoning
    • zero-shot CoT
    • manual CoT chains
    • reasoning faithfulness
    • Let's think step by step
    • arithmetic reasoning
  • Self-Consistency

    Sampling multiple reasoning paths and selecting the most consistent answer, majority voting, and confidence calibration through repetition

    Objectives

    • Implement self-consistency sampling for improved accuracy
    • Evaluate cost vs accuracy trade-offs of multiple sampling

    Key concepts

    • majority voting
    • multiple sampling
    • reasoning path diversity
    • confidence estimation
    • temperature for diversity
    • cost-accuracy trade-off
  • Role Prompting

    Assigning personas and roles to models, system prompts, persona design, and domain expert simulation for improved task performance

    Objectives

    • Design effective role prompts for specific domains
    • Understand how role assignment affects model behavior

    Key concepts

    • system prompt
    • persona design
    • domain expert simulation
    • tone control
    • audience targeting
    • role consistency
  • Structured Outputs

    Enforcing JSON schemas, function calling for structured data, grammar-constrained generation, and Pydantic model integration

    Objectives

    • Enforce reliable structured outputs from LLMs
    • Design validation-retry loops for structured extraction

    Key concepts

    • JSON schema enforcement
    • constrained decoding
    • Pydantic models
    • response_format
    • grammar-based generation
    • validation loops
  • Prompt Chaining

    Decomposing complex tasks into sequential LLM calls, passing context between steps, and designing multi-step prompt pipelines

    Objectives

    • Design multi-step prompt chains for complex tasks
    • Handle context passing and error propagation between chain steps

    Key concepts

    • task decomposition
    • sequential chaining
    • context passing
    • gate checks
    • parallel chains
    • error propagation
  • Tree of Thoughts & Advanced Reasoning

    Advanced reasoning techniques beyond chain-of-thought: Tree of Thoughts exploration, ReAct pattern, step-back prompting, self-consistency, and plan-and-solve strategies

    Objectives

    • Apply Tree of Thoughts to problems requiring exploration of multiple reasoning paths
    • Choose the right advanced reasoning technique for a given task

    Key concepts

    • Tree of Thoughts
    • ReAct pattern
    • step-back prompting
    • self-consistency
    • plan-and-solve
  • Prompt Ensembling

    Combining multiple prompts for improved reliability: self-consistency voting, diverse verifiers, prompt portfolios, and multi-prompt aggregation strategies

    Objectives

    • Design prompt ensembles that improve reliability over single prompts
    • Evaluate cost-accuracy trade-offs of prompt ensembling strategies

    Key concepts

    • multi-prompt aggregation
    • self-consistency voting
    • diverse verifiers
    • prompt portfolios
3 · RAG & Retrieval Patterns5 topics
  • Chunking Strategies

    Fixed-size chunking, semantic chunking, recursive splitting, document-aware chunking, and overlap strategies for retrieval-augmented generation

    Objectives

    • Select appropriate chunking strategies for different document types
    • Optimize chunk size and overlap for retrieval quality

    Key concepts

    • fixed-size chunks
    • semantic chunking
    • recursive character splitting
    • chunk overlap
    • document structure awareness
    • chunk size optimization
  • Embedding Models

    Text embedding models, vector similarity, embedding dimensions, model selection criteria, and fine-tuning embeddings for domain-specific retrieval

    Objectives

    • Choose embedding models based on task requirements
    • Evaluate embedding quality for specific domains

    Key concepts

    • dense embeddings
    • cosine similarity
    • embedding dimensions
    • model selection
    • domain fine-tuning
    • MTEB benchmark
  • Hybrid Search

    Combining keyword-based (BM25) and semantic search, reciprocal rank fusion, weighted scoring, and query routing for optimal retrieval

    Objectives

    • Design hybrid search systems combining keyword and semantic retrieval
    • Tune fusion parameters for retrieval quality

    Key concepts

    • BM25
    • semantic search
    • reciprocal rank fusion
    • weighted scoring
    • query routing
    • sparse-dense fusion
  • Reranking

    Cross-encoder reranking, LLM-based reranking, ColBERT, score calibration, and cost-quality trade-offs in retrieval pipelines

    Objectives

    • Implement reranking stages in retrieval pipelines
    • Choose between cross-encoder and LLM-based reranking

    Key concepts

    • cross-encoder
    • bi-encoder vs cross-encoder
    • ColBERT
    • LLM reranking
    • score calibration
    • retrieval-rerank pipeline
  • Context Window Management

    Managing limited context windows, context compression, lost-in-the-middle effects, citation tracking, and prompt budgeting for RAG systems

    Objectives

    • Manage context window constraints in RAG systems
    • Mitigate lost-in-the-middle effects through ordering strategies

    Key concepts

    • context window limits
    • lost-in-the-middle
    • context compression
    • prompt budgeting
    • citation tracking
    • sliding window
4 · Evaluation & Testing7 topics
  • Prompt Evaluation Metrics

    Measuring prompt quality with automated metrics, human evaluation, LLM-as-judge, BLEU, ROUGE, and domain-specific evaluation criteria

    Objectives

    • Design evaluation frameworks for prompt quality
    • Choose appropriate metrics for different prompt tasks

    Key concepts

    • LLM-as-judge
    • BLEU
    • ROUGE
    • human evaluation
    • inter-annotator agreement
    • evaluation rubrics
  • A/B Testing Prompts

    Designing controlled experiments for prompt variants, statistical significance, traffic splitting, and multi-armed bandit approaches for prompt optimization

    Objectives

    • Design A/B tests for prompt optimization
    • Interpret results with statistical rigor

    Key concepts

    • A/B testing
    • statistical significance
    • traffic splitting
    • multi-armed bandit
    • prompt variants
    • control vs treatment
  • Regression Testing

    Building prompt test suites, golden datasets, continuous evaluation, version comparison, and detecting prompt degradation over time

    Objectives

    • Build automated regression test suites for prompts
    • Detect and diagnose prompt quality degradation

    Key concepts

    • golden datasets
    • test suites
    • continuous evaluation
    • version comparison
    • regression detection
    • assertion-based testing
  • Benchmarking

    Designing domain-specific benchmarks, evaluating model capabilities, leaderboard construction, and comparing models for prompt-specific tasks

    Objectives

    • Design benchmarks for domain-specific prompt evaluation
    • Avoid common benchmarking pitfalls like data contamination

    Key concepts

    • benchmark design
    • task taxonomy
    • model comparison
    • leaderboard construction
    • contamination detection
    • held-out test sets
  • Red Teaming

    Adversarial testing of prompts, jailbreak detection, prompt injection attacks, boundary testing, and systematic vulnerability discovery

    Objectives

    • Conduct systematic red teaming of prompt-based systems
    • Design defenses against common prompt attack vectors

    Key concepts

    • jailbreak attacks
    • prompt injection
    • adversarial inputs
    • boundary testing
    • DAN attacks
    • defense strategies
  • Prompt Debiasing

    Identifying and mitigating biases in prompt-based systems through calibration techniques, balanced examples, perspective prompting, and systematic fairness testing

    Objectives

    • Identify common sources of bias in prompt-based systems
    • Design debiasing strategies for production LLM applications

    Key concepts

    • bias mitigation
    • calibration techniques
    • balanced examples
    • perspective prompting
    • fairness testing
  • Evaluation Frameworks (RAGAS/TruLens)

    Using RAGAS and TruLens for systematic LLM evaluation: faithfulness, relevancy, context recall metrics, LLM-as-judge patterns, and building evaluation pipelines

    Objectives

    • Implement RAGAS-based evaluation pipelines for RAG systems
    • Design comprehensive evaluation strategies combining multiple frameworks

    Key concepts

    • RAGAS metrics (faithfulness, relevancy, context recall)
    • TruLens feedback
    • LLM-as-judge
    • evaluation pipelines
5 · Agents & Tool Use7 topics
  • Function Calling

    Defining tool schemas, function calling APIs, parameter extraction, error handling in tool calls, and parallel function execution

    Objectives

    • Design tool schemas for function calling APIs
    • Handle errors and edge cases in tool execution

    Key concepts

    • tool schema definition
    • parameter extraction
    • function calling API
    • parallel tool calls
    • error handling
    • tool selection logic
  • Agent Architectures

    ReAct pattern, plan-and-execute, tool-augmented generation, memory systems, and comparing agentic frameworks like LangGraph, CrewAI, and AutoGen

    Objectives

    • Choose appropriate agent architectures for different tasks
    • Design agent loops with proper termination conditions

    Key concepts

    • ReAct
    • plan-and-execute
    • tool-augmented generation
    • memory systems
    • LangGraph
    • agent loops
  • Planning & Reflection

    Task planning, self-reflection, self-critique, iterative refinement, and metacognitive prompting for improved agent performance

    Objectives

    • Implement planning and reflection loops in agent systems
    • Design self-critique mechanisms that improve output quality

    Key concepts

    • task planning
    • self-reflection
    • self-critique
    • iterative refinement
    • metacognitive prompting
    • plan revision
  • Multi-Agent Systems

    Agent collaboration patterns, debate and consensus, specialized agent roles, communication protocols, and orchestrating multi-agent workflows

    Objectives

    • Design multi-agent workflows with clear role boundaries
    • Implement communication protocols for agent collaboration

    Key concepts

    • agent collaboration
    • debate pattern
    • role specialization
    • communication protocols
    • orchestration
    • consensus mechanisms
  • Guardrails

    Input/output validation, content filtering, safety classifiers, hallucination detection, and building robust guardrail pipelines for LLM systems

    Objectives

    • Design comprehensive guardrail systems for LLM applications
    • Implement hallucination detection and mitigation strategies

    Key concepts

    • input validation
    • output filtering
    • safety classifiers
    • hallucination detection
    • guardrail pipelines
    • fallback strategies
  • LangGraph

    Building agent workflows with LangGraph's state machine model, conditional edges, human-in-the-loop patterns, persistence, and streaming for complex agentic systems

    Objectives

    • Design LangGraph workflows with proper state management and conditional logic
    • Implement human-in-the-loop patterns in LangGraph agent systems

    Key concepts

    • LangGraph agent workflows
    • state machines
    • conditional edges
    • human-in-the-loop
    • persistence
    • streaming
  • CrewAI

    Multi-agent orchestration with CrewAI: defining agent roles, task delegation, crew hierarchies, agent tool integration, and collaboration patterns

    Objectives

    • Design CrewAI crews with well-defined roles and collaboration patterns
    • Compare CrewAI's approach to other multi-agent frameworks

    Key concepts

    • multi-agent orchestration
    • role definitions
    • task delegation
    • crew hierarchies
    • agent tools
    • collaboration patterns
6 · Production Systems5 topics
  • Prompt Versioning

    Version control for prompts, prompt registries, rollback strategies, migration paths, and managing prompt evolution across deployments

    Objectives

    • Implement prompt versioning systems with rollback support
    • Design migration strategies for prompt updates

    Key concepts

    • prompt registry
    • version control
    • rollback strategies
    • migration paths
    • A/B deployment
    • canary releases
  • Cost Optimization

    Token usage optimization, caching strategies, model routing, prompt compression, and building cost-aware LLM pipelines

    Objectives

    • Design cost-efficient LLM pipelines without sacrificing quality
    • Implement caching strategies for repeated queries

    Key concepts

    • token optimization
    • prompt caching
    • semantic caching
    • model routing
    • prompt compression
    • batch processing
  • Latency Management

    Streaming responses, parallel inference, speculative decoding, request batching, and optimizing time-to-first-token for production systems

    Objectives

    • Optimize LLM latency for real-time applications
    • Design streaming architectures for responsive UX

    Key concepts

    • streaming
    • parallel inference
    • speculative decoding
    • request batching
    • time-to-first-token
    • model distillation
  • Observability

    LLM logging and tracing, prompt analytics, quality monitoring dashboards, alert systems, and debugging production prompt failures

    Objectives

    • Implement observability for production LLM systems
    • Design monitoring dashboards for prompt quality

    Key concepts

    • LLM tracing
    • prompt analytics
    • quality monitoring
    • alerting
    • debugging workflows
    • LangSmith/Langfuse
  • Safety & Alignment

    Constitutional AI principles, RLHF concepts, responsible AI deployment, bias detection, content policies, and governance frameworks for LLM systems

    Objectives

    • Design governance frameworks for responsible LLM deployment
    • Implement bias detection and mitigation strategies

    Key concepts

    • constitutional AI
    • RLHF
    • bias detection
    • content policies
    • governance frameworks
    • responsible deployment
7 · Expert Prompt Engineering5 topics
  • Few-Shot & Chain-of-Thought Optimization

    Systematically optimizing few-shot example selection and chain-of-thought prompts for consistent performance at scale

    Objectives

    • Systematically select and optimize few-shot examples for diverse query coverage
    • Design chain-of-thought prompts that improve accuracy consistently across different tasks

    Key concepts

    • few-shot selection
    • coverage diversity
    • chain-of-thought
    • zero-shot CoT
    • self-consistency
    • example ordering effects
    • calibration prompts
  • Structured Output Engineering

    Reliably generating structured outputs (JSON, XML) using constrained decoding, function calling, and validation strategies

    Objectives

    • Design reliable structured output pipelines with validation and retry logic
    • Select the appropriate structured output method for different reliability requirements

    Key concepts

    • function calling
    • JSON mode
    • constrained decoding
    • output validation
    • Pydantic integration
    • retry on parse error
    • grammar-based generation
  • Agentic Prompt Patterns

    Designing prompt architectures for agentic systems: ReAct, Tree of Thoughts, Plan-and-Solve, and self-reflection loops

    Objectives

    • Design prompt architectures for complex multi-step agentic systems
    • Select and combine agentic prompting patterns based on task complexity

    Key concepts

    • ReAct
    • Tree of Thoughts
    • Plan-and-Solve
    • self-reflection
    • tool selection prompts
    • agent meta-prompts
    • task decomposition
  • Prompt Injection Defense

    Identifying and mitigating prompt injection attacks in LLM applications: input sanitization, privilege separation, and detection

    Objectives

    • Identify and classify prompt injection attack vectors in LLM applications
    • Design defense-in-depth strategies for prompt injection prevention

    Key concepts

    • direct injection
    • indirect injection
    • privilege separation
    • input sanitization
    • instruction hierarchy
    • detection classifiers
    • safe tool calling
  • Evaluating LLM Outputs at Scale

    Building systematic LLM evaluation pipelines: LLM-as-judge, human preference datasets, benchmark design, and regression testing

    Objectives

    • Design a scalable LLM evaluation pipeline combining automated and human evaluation
    • Build regression testing frameworks that detect prompt quality degradation

    Key concepts

    • LLM-as-judge
    • preference data
    • benchmark design
    • eval datasets
    • regression testing
    • G-Eval
    • RAGAS
    • human eval agreement

Levels: Junior, Mid, Senior, and Expert

Explain it in your own words

Graded by AI · no account · 1 question

No options to guess from: you write, the AI grades against the topic's rubric and tells you what level your answer reads at.

0 / 600

Already studying Prompt Engineering?

The assessment measures topic by topic, and your plan skips what you already know.

Open to read. An account is only needed to be measured.

Frequently asked questions

Where should I start studying Prompt Engineering?

Start with Prompt Fundamentals: Zero-Shot Prompting, Few-Shot Prompting, and Instruction Clarity. The map orders topics by what they depend on, so each one prepares the next.

How long does a full Prompt Engineering assessment take?

A full assessment of this path takes about 55 minutes. Study time depends on where you start; a diagnostic shows which topics you can skip.

Do I need an account to use this page?

No. The map, objectives and key concepts are open. You only need an account to be measured, get your gap by topic and receive a plan.