Decoding Prompting with Chai ☕️

Abhijith KaleAbhijith Kale
7 min read

Ever wondered how to get the most out of AI tools like ChatGPT? It's all about how you ask. Think of it like ordering at a restaurant—the clearer and more specific you are, the better your meal turns out. Let's dive into some prompting techniques that can help you communicate effectively with AI.

Zero-Shot Prompting

Imagine asking a friend to bake a cake without giving them a recipe. If they're experienced, they might pull it off. Similarly, zero-shot prompting involves giving the AI a task without any examples.

Example:

  • Prompt: "Translate 'Good morning' into Spanish."

  • AI Response: "Buenos días."

The AI uses its training to understand and respond, even without specific guidance.

Few-Shot Prompting

Now, suppose you provide your friend with a couple of cake recipes before asking them to bake. They're more likely to get it right. Few-shot prompting works the same way—you give the AI a few examples to guide its response.

Example:

  • Prompt:

    • "Translate 'Good night' into Spanish: Buenas noches."

    • "Translate 'Thank you' into Spanish: Gracias."

    • "Translate 'Please' into Spanish:"

  • AI Response: "Por favor."

The examples help the AI understand the pattern and respond accurately.

Chain of Thought Prompting

Ever thought how you think many times about what to eat for lunch and you decide based on your preferences, dietary restrictions, and available options. Here you follow a step by step thought process to reach a decision. Similarly chain of thought prompting encourages the AI to do the same, breaking down its reasoning step by step by thinking out loud helps solve problems.

Example:

Let's consider a simple math problem:

"I went to the market and bought 10 apples. I gave 2 apples to the neighbor and 2 to the repairman. I then bought 5 more apples and ate 1. How many apples do I have now?"

If we ask an AI model directly, it will respond directly saying "11 apples." However, by prompting it to think step by step, we guide it through the reasoning process:

  • Start with 10 apples.

  • Give away 2 to the neighbor and 2 to the repairman: 10 - 4 = 6 apples.

  • Buy 5 more apples: 6 + 5 = 11 apples.

  • Eat 1 apple: 11 - 1 = 10 apples.

This way we not only improve accuracy but also gain insight into its reasoning process.

Self-Consistency Prompting

Ever ask multiple friends the same question to see if their answers align? Self-consistency prompting involves running the same prompt multiple times and comparing the results to find the most consistent answer.

Imagine you're trying to remember the directions to a friend’s house, but you’re not completely sure. So, you try recalling it a few times in your head:

  • The first time, you think, “Take a left at the bakery, then go straight until the park.”

  • The second time, you think, “Wait, maybe it's right at the bakery, then past the school.

  • The third time, you think, “No, no, it was definitely left, then there’s a coffee shop before the park.”

After running through these variations, you notice the most common pattern: “left at the bakery, straight past the park”. You go with that because it showed up the most—and it turns out to be correct.

That’s self-consistency prompting. Instead of relying on a single try (which might be wrong), the model tries multiple reasoning paths and then picks the one that shows up most consistently—like your brain voting on the best memory.

Instruction Prompting

As Clear instructions lead to better outcomes. Instruction prompting involves telling the AI exactly what you want it to do.

Imagine you're texting your friend:

“Can you write a 3-line birthday message for Mom that’s sweet but not cheesy?”

You’re giving clear instructions on what you want, how long it should be, and the tone. The better your instruction, the more likely your friend nails it.

Direct Answer Prompting

Sometimes, you just want a straightforward answer. So direct answer prompting asks the AI to provide a concise response without additional explanation.

For instance you ask someone “what day is it today?” and they reply with just one word “Thursday“. Thats a direct answer, short and to the point.

"Just give me the answer."

You’re running late and shout across the room:
“Hey! What’s 17 times 12?”
You don’t want the math steps, you just want the answer:
“204.”

“What’s the capital of Finland?”
“What is the square root of 144?”
“Who won the FIFA World Cup in 2018?”

This is direct answer prompting. You ask a question and expect a clean, straight-to-the-point response. No extra explanation. This is great for fact-based stuff like:

Persona-Based Prompting

Imagine asking a historian about Taj Mahal versus asking a comedian. The tone and content would differ. Persona-based prompting basically assigns a specific character or role to the AI to shape its response.

Its as if the AI actually has a personality of whomever it is made to mimic.

"Pretend you’re someone else and answer like them."

“Can you explain gravity like you’re a 5-year-old?”
Suddenly, their reply turns into something playful and innocent:
“Gravity is like a big invisible hand that holds us to the ground so we don’t fly away!”

You’re asking them to step into a persona—a character—with a certain voice, tone, and mindset. In AI land, you can do the same thing:

Examples:

“You are a nutritionist. Recommend a post-workout meal.”
“You are a software engineer. Review this code.”

The personality shift changes how the AI responds, and that can make answers more fun, tailored, or empathetic.

Contextual Prompting

Providing context helps the AI understand your request better. Contextual prompting involves giving background information to guide the AI's response.
So every time you ask anything new which is related to previous conversation You don’t have to start from scratch every time.

Imagine you’re on a phone call with a friend planning a weekend trip. You say:

“Let’s go somewhere chill this time.”
[chat continues for 10 minutes]
Then you suddenly ask, “What about Manali?”

Now, you didn’t repeat the word “trip” or “travel.” But your friend just gets it—because they remember the context of your ongoing conversation.

That’s what contextual prompting does for AI. It allows the model to hold on to the thread of conversation, so you don’t have to re-explain yourself every few lines.

It’s like the AI is sitting next to you, nodding along, remembering your tone, your intention, and everything you've said so far. This makes conversations feel real—not like you’re talking to a machine, but someone who’s actually been paying attention.

Multimodal Prompting

Imagine showing a friend a picture and asking them to describe it. Multimodal prompting involves using multiple types of input, like text and images, to interact with the AI. It helps helps the AI understand the nuances of the request.

So you you’re not just telling—but also showing.

Let’s say you’re baking a cake and you video-call your friend. You show them the mess of ingredients on your counter and ask:

“Can I make something sweet with this?”

They scan the scene—flour, eggs, chocolate—and say:

“Easy. Make brownies.”

That’s multimodal prompting in the AI world. Instead of just using text, you’re feeding the model different types of inputs like:

  • 📷 Images

  • 🔊 Audio

  • 📄 PDFs or charts

  • 📹 Even short video clips

And it can respond by combining what it sees, reads, or hears—just like a human would.

It’s like you’re no longer just talking to an AI—you’re collaborating with it, using all the senses. Multimodal AI is what makes it feel like a real assistant, not just a chatbot.

Wrapping it up

Prompting isn’t just about asking questions, it’s about how you ask them. Just like having a good conversation with a friend, the tone, context, and clarity matter. Whether you're giving clear instructions, showing examples, layering thoughts, or even feeding it images, each technique unlocks a different superpower of the model.

And the best part? You don’t need to be a tech wizard to use them. You just need a bit of curiosity and creativity. The more you experiment, the better your prompts get—and suddenly, the AI starts feeling less like a tool and more like a teammate.

So go ahead, prompt like an artist, think like a detective, and talk to your AI like you would to a really smart (and slightly magical) friend. ✨

##

1
Subscribe to my newsletter

Read articles from Abhijith Kale directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Abhijith Kale
Abhijith Kale