𝗦𝘁𝗼𝗽 𝗯𝗹𝗮𝗺𝗶𝗻𝗴 𝗔𝗜. 𝗙𝗶𝘅 𝘆𝗼𝘂𝗿 𝗽𝗿𝗼𝗺𝗽𝘁.
Prompting
Prompting is just asking AI to do stuff but there is a massive difference between a vague request and a well-structured prompt.
A prompt is a call to action. If the pattern is vague, the AI has to guess what you mean. But the more focused and specific your prompt is, the better the results become. You are not exactly “hacking probabilities,” but you are giving the model better instructions to generate the output you actually want.
1. personas
Give the AI a role, personality, or level of expertise to influence how it responds and generates the result.
Instead of just saying:
“Explain Linux.”
Try:
“You are an experienced Linux instructor teaching beginners.”
Now the AI has a better idea of how to think about the response, who it is speaking to, and what kind of answer you expect.
2. context
LLMs can hallucinate. They are prediction machines that generate the most likely response based on the information and patterns they have.
If you give the AI less information, it has more gaps to fill with guesses. Give it more relevant context, and you reduce the amount of guessing it needs to do.
more context = less hallucination
Give the AI the additional facts, background, constraints, examples, and specific details it needs to fill the gaps in your request.
ABC - Always Be Context
But here is the important part: more context does not mean dumping random information into the prompt. The context needs to be relevant, accurate, and specific.
And if the AI does not have enough information to answer confidently, give it permission to say I don't know.
That is one of the simplest and most effective ways to reduce hallucinations.
3. format
Don't just tell the AI what to do. Tell it exactly how you want the final output to look.
Specify things like:
- total length
- number of paragraphs
- tone
- audience
- structure
- output format
- examples
The more specific the format, the less the AI has to guess.
And if you provide a perfect example of the output you want, the AI can identify the pattern and generate something much closer to it.
This is where techniques like zero-shot and few-shot prompting become useful. Zero-shot prompting means asking the AI to perform a task without providing an example. Few-shot prompting means providing examples so the AI can understand the pattern you want it to follow.
4. advance technique
COT - Chain of Thought
Chain of Thought prompting is a technique designed to guide a model through a problem-solving process step by step. For complex problems, you can ask the AI to analyze the problem carefully and provide a concise answer with the necessary reasoning. The important thing is: you don't always need to ask the model to expose every hidden thought. The goal is to guide better reasoning, not just generate a longer answer.
TOT - Tree of Thoughts
Tree of Thoughts takes the idea of reasoning further. Instead of following only one line of thinking, the model explores multiple possible paths or branches, evaluates them, and selects the most promising direction.
Think of it like this:
one thought -> one path
tree of thoughts -> multiple possible paths
This can be useful for complex problems where there is more than one possible solution.
5. the meta skill
Here is the real skill behind prompting: if you cannot explain the problem clearly yourself, you will struggle to get a good answer from an LLM. Before you ask the AI anything, first analyze the problem. What exactly are you trying to solve? What information does the AI need? What constraints exist? What should the final result look like?
Prompt engineering is not just about writing fancy prompts. It is about clarity — the ability to communicate your problem to an AI better than most people.
And if the AI gives you a bad response, don't immediately blame the AI. Maybe you didn't explain the problem clearly enough. Maybe you didn't provide enough context. Maybe you didn't define the output format.
Sometimes, it's not an AI skill issue.
It's a you skill issue.
Don't blame the AI.

Comments
Post a Comment