AI Dictionary of Terms

Prompt Engineering

The practice of designing and refining input prompts to guide large language models toward producing desired outputs, without modifying the model’s underlying weights or architecture.

The Simple Version

Imagine you have a brilliant but very literal assistant. If you say “write something about dogs,” they might write a poem, a scientific paper, or a children’s story — you never know what you’ll get.

But if you say “write a 200-word blog post for pet owners about the benefits of adopting senior dogs, using a warm and encouraging tone,” you’ll get exactly what you need.

Prompt engineering is the art and science of asking AI the right questions in the right way. It’s not about changing the AI — it’s about communicating your needs clearly so the AI can help you effectively.

Detailed Explanation

Prompt engineering leverages the fact that LLMs are highly sensitive to how instructions are phrased. Small changes in wording can dramatically affect output quality, format, and relevance.

Core Techniques:

1. Zero-Shot Prompting Direct instruction without examples:

“Classify this email as spam or not spam: [email text]”

2. Few-Shot Prompting Providing 2-5 examples to establish the pattern:

“Here are examples of positive and negative reviews… Now classify this one.”

3. Chain-of-Thought (CoT) Asking the model to reason step-by-step:

“Let’s think through this step by step. First, …”

4. Role Prompting Assigning a persona or expertise:

“You are a senior financial analyst with 20 years of experience. Analyze this report…”

5. Structured Output Prompting Specifying exact format requirements:

“Return your answer as JSON with keys: ‘summary’, ‘key_points’, ‘confidence_score’”

6. Constraint Setting Defining boundaries:

“Answer in 3 sentences or less. Do not mention competitors. Use formal tone.”

Advanced Techniques:

Key Characteristics

Business Context

Prompt engineering is the fastest, cheapest way to improve AI outputs in enterprise settings:

Business Applications:

ROI Advantages:

Enterprise Best Practices:

Real-World Analogy

Writing a detailed brief for a freelance writer. If you say “write an article about AI,” you’ll get something generic. If you say “write a 1,500-word article for CTOs about the business impact of generative AI, with 3 case studies and a conclusion about 2026 trends,” you’ll get something valuable. Prompt engineering is writing the best possible brief for your AI assistant.

Example Prompt

Scenario: You need consistent customer email responses.

Weak Prompt:

“Respond to this customer email.”

Strong Prompt:

You are a customer support representative for TechCorp. Respond to the customer email below following these guidelines:

Tone: Professional, empathetic, solution-oriented Length: 150-200 words Structure:

  1. Acknowledge their concern
  2. Provide a clear solution or next step
  3. Offer additional help
  4. Close warmly

Constraints:

Customer Email: “Hi, I’ve been having trouble with my account login for 3 days. I’ve tried resetting my password but it’s not working. This is urgent because I need to access my invoices.”

Your Response:

Result: A consistent, on-brand response that addresses the customer’s needs while following company policies.

Common Misconceptions

Sources & Further Reading