Prasad Ware

Aug 15, 2025 • 6 min read

The Hidden Language of AI

System Prompts & Prompting Techniques

The Hidden Language of AI

Large Language Models (LLMs) are like super-smart interns, they can do amazing work, but only if you give them the right instructions.

The way you phrase your request — your prompt — can be the difference between a perfect answer and a confusing mess.

Here’s the key:

  • LLMs don’t “think” like humans.

  • They predict the next token based on your input and their training data.

  • The quality of your prompt directly impacts the quality of the output.

Before we dive into techniques, let’s define two important terms:

  • Prompt → The input you give to an LLM.

  • System Prompt → The hidden or initial instruction that sets the model’s behavior for the entire conversation.

What Is a System Prompt?

A system prompt is the invisible “briefing” that sits at the top of the conversation, defining who the model is, how it speaks, and what it’s allowed to do.

It is the instruction we provide it for the model to actually have a personality and without personality how can it feel human.

Example:

{"role": "system", "content": "You are a helpful assistant that explains concepts in simple terms."}

Why it matters:

  • Sets context before any user input.

  • Controls style, persona, and boundaries.

  • Ensures consistency across multiple responses.

💡 Analogy: Think of it like a job description you give someone before they start working.

Prompting Standards Across Models

Different LLMs expect different prompt formats. Using the wrong one can lead to poor results.

These are the formats that help in Writing / Structuring prompts for the model to understand and predict the next tokens for the input.

Alpaca Prompting

### Instruction:
What is System Prompting?
### Response:

INST Formatting (LLaMA-2)

"[INST] What is System Prompting? [/INST]"

FLAN-T5

Question: What is System Prompting?
Answer:

ChatML (OpenAI)

[
 {"role": "system", "content": "You are a helpful assistant."},
 {"role": "user", "content": "What is System Prompting?"}
]

ChatML is the most widely used format as per the industry standards set by OpenAI

Types of Prompting Techniques

Zero-Shot Prompting

Zero-shot prompting means that the prompt used to interact with the model won't contain examples or demonstrations. we ask the model to perform a task without giving examples.

You rely entirely on the model’s pre-trained knowledge and understanding of natural language.

User: Translate "Hello" to French.
AI: Bonjour

Here, you didn’t show the model any translation examples — you just asked directly.

When to Use:

  • The task is simple and well-known to the model.

  • You want quick results without spending tokens on examples.

  • You’re testing the model’s baseline ability.

Few-Shot Prompting

Few-shot prompting can be used as a technique to enable in-context learning where we provide demonstrations in the prompt to steer the model to better performance. We provide a few examples before asking the model to perform the task.

These examples act as training on the fly, showing the model the pattern, style, and format you expect.

INPUT : 
English: Hello → French: Bonjour
English: Good morning → French: Bonjour
English: Thank you → French:

AI-OUTPUT :
Merci

Here, the model learns from the first two examples that:

  • The task is English → French translation.

  • The output should follow the same arrow format.

When to Use:

  • The task requires a specific format or style.

  • You want more consistent results than zero-shot.

  • The model might be uncertain without guidance.

Chain-of-Thought (CoT) Prompting

Chain-of-Thought prompting asks the model to show its intermediate reasoning rather than jumping straight to the final answer. You explicitly invite a step-by-step explanation so the model “thinks out loud.”

This technique was first introduced in a 2022 Google Brain paper, where it drastically improved model performance on math, common sense, and symbolic reasoning tasks.

Why it helps:

  • Exposes intermediate steps, which reduces logical mistakes

  • Forces structure on multi-step problems (math, planning, troubleshooting)

  • Makes it easier to audit and correct the model’s reasoning

Simple pattern: “Let’s reason this through step-by-step.” or “Show your work, then give the final answer on a new line as: Final answer: <value>”

Variants and Improvements :

  • Auto-CoT (Automated CoT)
    Automatically generates reasoning examples from labeled data, no manual design needed. Delivers performance on par with hand-crafted prompts.

  • Plan-and-Solve Prompting
    A two-stage zero-shot approach:

    1. Plan: Break the problem into subtasks.

    2. Solve: Tackle each subtask.

    Helps overcome errors or missing steps in standard zero-shot CoT

Without CoT :

Q: There were 23 apples, 20 used, then 6 bought. How many now?
A: 9

With CoT :

A:
1. Started with 23 apples.
2. Used 20, so 23 - 20 = 3.
3. Bought 6 more, so 3 + 6 = 9.
Final answer: 9.

When to use:

  • Math, logic, code reasoning, systems design, root-cause analysis

  • Any task requiring intermediate calculations, assumptions, or trade-offs

  • Teaching/learning contexts where “showing the work” is beneficial

Self-Consistency Prompting

Self-consistency prompting improves reliability by sampling multiple independent reasoning paths (e.g., multiple Chain‑of‑Thought runs) and then selecting the most common final answer. Instead of trusting a single reasoning trace, you aggregate across several and pick the consensus.

Why it helps:

  • A single CoT run can get stuck in a wrong path.

  • Multiple samples explore different reasoning trajectories.

  • Majority voting tends to cancel out outliers and reduce hallucinations.

How it works (conceptually):

  1. Ask the model the same question multiple times with temperature > 0 (e.g., 0.7).

  2. Each run produces its own step-by-step reasoning and final answer.

  3. Extract the final answers.

  4. Choose the majority answer (or score them with a verifier).

You can experience this type of prompting whenever we see ChatGPT trying new model responses and asks us for preferences

When to use:

  • Math/logic tasks where small mistakes can derail a single run

  • Non-trivial planning or coding problems

  • Safety-critical summaries/facts where you want higher confidence

Persona-Based Prompting

Persona-based prompting sets a specific role, expertise level, tone, and constraints so the model responds like a particular “personality” or professional. This guides vocabulary, depth, and structure.

Why it helps:

  • Aligns answers with your audience (e.g., exec summary vs. deep-dive)

  • Encourages domain-appropriate terminology and examples

  • Produces consistent tone and structure across a product or doc set

Core components of a good persona:

  • Role and seniority: “Senior JavaScript developer,” “Principal SRE,” “Professor of Economics”

  • Audience: “for junior devs,” “for business stakeholders,” “for non-technical users”

  • Style/tone: “concise,” “empathetic,” “Socratic,” “hands-on”

  • Output format: bullets, numbered steps, code-first, ELI5

  • Constraints: “no jargon without definitions,” “keep to 150 words,” “cite 2 sources”

Example Prompt:

INPUT : You are a senior JavaScript developer mentoring a junior. Explain JavaScript closures:
Use simple language and a concrete analogy
Include one short code example with comments
End with two quick exercises for the reader

OUTPUT : 
Analogy: “A function remembers the backpack (scope) it was created with…”
Code: function outer(){ let x=1; return function inner(){ console.log(x); } }
Exercises: “Modify to add; explain why x persists.”

When to use:

  • Tutorials, onboarding guides, customer comms, product UX copy

  • Roleplay scenarios (e.g., interviewer/interviewee, coach, consultant)

  • Consistent brand voice across multiple prompts or agents

Why Prompting Truly Matters (and What's Next)

Crafting clear, structured prompts isn’t just a technical detail—it's the difference between generic AI responses and truly intelligent collaboration. As long as LLMs rely on predict-the-next-token mechanics, how you frame your request—through system prompts, examples, reasoning cues, and persona settings—drastically shapes the outcome.

Effective prompting bridges the gap between human intent and AI response, transforming vague instructions into focused, accurate, and context-aware output. Techniques like chain-of-thought, few-shot examples, self-consistency, and persona-based prompts aren’t just advanced tricks, they’re essential tools that unlock the model’s potential.

So here’s your call to action:

  • Experiment boldly: mix system prompts with few-shot, CoT, persona-based setups.

  • Test across models, different formats may yield surprising improvements.

  • Share what works (and what doesn’t) : prompt engineering is still a collective frontier.

By mastering prompting now, you’re not just getting better AI responses, you’re paving the way for the next generation of human-AI teamwork.

Join Prasad on Peerlist!

Join amazing folks like Prasad and thousands of other builders on Peerlist.

peerlist.io/

It’s available... this username is available! 😃

Claim your username before it's too late!

This username is already taken, you’re a little late.😐

1

12

0