Prompt Engineering for Predictable Results

Content Product Manager at inDrive. Tair Sultanov

Brief description

How to write prompts that produce predictable results and genuinely boost your efficiency.


Details

Level: for beginners

Language: Russian

Duration: 5:14


Lesson transcript

Today we'll look at how to write prompts that produce predictable results and genuinely boost your efficiency.

A prompt is a brief for a new employee

It's important to understand: a good prompt isn't a magic formula, it's a clear brief for a newcomer. Imagine you have a very capable employee in front of you who, however, knows absolutely nothing about your company and context. A request like "do the report for me" won't work.

A quality test from Anthropic: show your prompt to a colleague. If they don't understand exactly what you expect of them, the neural network won't either.

A six-part prompt template

  1. Context — who you are, what your role is and why you need this result.
  2. Task — one specific action verb: exactly what needs to be done (compile a report, identify pain points, structure a database).
  3. Input data — the source text, separated from the instruction by delimiters or tags (for example, <review>...</review> or ---). Without delimiters, the model has to spend extra effort separating your commands from the content being processed.
  4. Response format — what form the result should take: a list, a table, JSON. Attaching references works great — for example, a sample report from colleagues or a mockup of the desired dashboard.
  5. Constraints — what must not be done and why.
  6. Examples (1–3 samples) — reference answers in a "before / after" format.

Comparison: a weak and a structured prompt

ParameterWeak promptStructured prompt
Request text"Analyze the review"Context: I'm the founder of a company that works with business listings on 2GIS. I need to win back dissatisfied customers and get feedback from them. Task: Analyze the reviews provided and identify 10 priority customers worth contacting to win them back. Input data: <reviews>[review text]</reviews> Format: JSON with the fields sentiment and complaint. Constraints: If there is no complaint, leave the field empty — don't make up problems. Example output: {"sentiment": "negative", "complaint": "delivery delay"}
ResultDifferent and unpredictable every time: the model doesn't understand the evaluation criteria and answers in a random format.A stable, accurate, ready-to-use result that closely matches your business task.

Four techniques to strengthen your prompts

  1. Give examples. One concrete sample of an ideal answer works better than a long abstract description.
  2. Explain the reason behind a rule. The model follows constraints more precisely when it understands the logic. For example, if you say the summary is for a short talk at the weekly team meeting, the AI will pick the right level of brevity on its own.
  3. Wrap data in tags. This ensures the model won't confuse the text being processed with your system instruction.
  4. Specify the format explicitly. Don't leave the structure of the answer up to the neural network.

How to practice and track progress

To see your progress, keep a simple table tracking your prompts through stages of increasing complexity:

  • Basic prompt → percentage of successful answers.
  • Added format and example → percentage of successful answers.
  • Added constraints → percentage of successful answers.

This way you'll clearly see which elements deliver the biggest quality gains for your specific tasks.

Practical assignment

Write a prompt using the six-part template for one real work task and run it on five different samples of input data.


Author
Tair Sultanov Content Product Manager at inDrive
Timecodes
0:00 A prompt as a brief for a new employee
0:46 Quality test from Anthropic
1:04 Six-part prompt template
2:30 Weak and structured prompts
3:51 Four techniques to strengthen prompts
4:29 Practice and progress tracking

Please take 5 minutes to leave us a review

Оставьте обратную связь