Skip to main content
A digital illustration of a human brain silhouette formed by bright blue circuit board pathways and nodes. The image symbolizes AI, data processing, and intelligence, representing the precise, technical nature of Prompt Engineering for LLM Performance.

Prompt Engineering for LLM Performance: Make One Job Repeatable

Prompt engineering for LLM performance is not better wording. It is pinning the inputs and settings, writing the output contract, scoring a sample of outputs against a written standard, and logging every run so you can tell drift from a bad day.

Rizwan Qaiser·September 30, 2025·Updated September 21, 2026·8 min read·LinkedIn

Rizwan Qaiser is the founder of Autonomous Technologies, a Vancouver-founded Shopify engineering agency. He leads the team's Shopify Plus builds, migrations and revenue audits, and writes from what those engagements show.

You paste a prompt into a model, read the product description it writes, and sign it off. Then you hand that same prompt to someone with the rest of the catalogue to fill. A week later the fabric is wrong on one listing, a care line is missing on another, and nobody can say which version of the prompt wrote which.

The model did not get worse. Nothing about the job was ever pinned down: not the inputs, not the shape of the output, not the standard an output has to clear before a customer sees it.

Prompt engineering for LLM performance is not better wording. It is making one job repeatable: pin the inputs and the settings, state the output shape, score a sample of outputs against a written standard, and log every run. Wording is the last thing you change, and only when the score tells you to.

This guide is for the operator who owns the output after it ships

This is for the person putting a model into a job the business already does. Product copy at catalogue scale, first-pass support triage, a daily summary of order exceptions. You are accountable for what ships, so a model that impressed you once is worth nothing.

It is not for anyone benchmarking models, and not for the person who needs one clever answer once. If a job runs once, wording is the whole game. If it runs a thousand times, wording is a rounding error.

Autonomous Technologies builds and runs the systems behind Shopify stores: the integrations, the data and the jobs that keep running after launch. Putting models inside those jobs is how we learned the rules below.

Prompt engineering, plainly: writing the instruction, the input and the output contract around a model so the same job comes out the same way twice. Most of that work sits outside the sentence you type. It is the engineering around the model, and it is the part that survives a vendor update.

Pin everything except the wording before you judge a prompt

Reproducible does not mean identical. It means an output whose shape you can predict, whose source you can trace, and whose quality you can argue about with a number rather than a feeling.

So start with the things that move under you. Temperature is the setting that controls how much randomness a model adds when picking the next word. Zero means always take the most likely one. Most operators assume zero buys determinism. It does not.

Thinking Machines Lab ran the same prompt 1,000 times at temperature 0 and got 80 different completions, published 10 September 2025. The cause was server load changing the batch size, not the prompt or the settings.

One prompt, 1,000 runs, nothing changed but server load. Temperature 0 did not return one answer.
What was measuredFigureSource
Completions requested at temperature 01,000Thinking Machines Lab, 10 September 2025
Different completions returned80same run
Tokens identical across all 1,000the first 102same run
The split at token 103992 one way, 8 the othersame run
Different completions after their fix1same run, batch-invariant kernels on
One prompt, 1,000 runs, nothing changed but server load. Temperature 0 did not return one answer.

So pin what you can, then judge a sample rather than one output.

Pin these five before you blame the wording. Four of them can change your output with nobody editing your prompt.
What to pinWhat it costs you unpinnedHow you hold it
Model name and versionThe vendor moves the default and your copy changes with no edit in your filesRecord the exact model string on every run, never "the current one"
Temperature and sampling settingsSame prompt, different length and tone across one afternoonSet them explicitly in the call, never inherit the default
The input fieldsA listing with no size chart reads as an invitation to invent oneReject the input before it reaches the model, not the output after
The output shapeEvery step downstream has to guess where the answer startsAsk for named fields, then fail the run when one is missing
Who may edit the promptTwo people fix opposite things in the same weekOne owner, one file, one change log
Pin these five before you blame the wording. Four of them can change your output with nobody editing your prompt.

A prompt is finished when a sample of its outputs passes a written standard

The technique list is not the scarce part. Wei and colleagues published chain-of-thought prompting on 28 January 2022. Eight worked examples took a 540-billion-parameter model to state of the art on a grade-school maths benchmark. Chain prompting and defensive instructions are taught material, covered in Packt’s Prompt Engineering: For Optimal LLM Performance from December 2023.

What is scarce is the standard. An evaluation set is a fixed group of real inputs plus the written standard their outputs must clear. Without one, “it got better” means “I liked the last three”.

Write the standard before you touch the prompt. Pull real inputs from the job, weight them towards the ugly cases, and say what a pass looks like field by field. Then split the judging. A model can decide whether a sentence names a source. It cannot count the words in that sentence, so counting belongs in code.

This page went through exactly that gate. Every page on this site is scored by a model against a fixed rubric of 36 questions across six lenses: search fit, readability, structure, visuals, conversion and brand rules. The model answers only the judgement questions. Word counts, caption counts, sentence lengths and banned characters are counted by a script, because a model asked to count returns a number that sounds right.

The output contract for one real job, our own outbound writer. Any row it breaks fails the run, so no human queue fills up with work to redo by hand.
FieldThe ruleWhy the number exists
Subject line2 to 5 wordsLong enough to name the subject, short enough to read at a glance
First paragraph35 to 45 wordsThe opener carries one cited fact and nothing else
Second paragraph30 to 40 wordsOne bridge sentence, one reason this reader
The ask8 to 18 wordsOne reply request, never two
Whole body110 words maximumThe examples we approved run 94 to 103 words
Any cited market fact18 words maximum, dated inside 90 daysOlder than a quarter and the reader who lives in that market notices first
The output contract for one real job, our own outbound writer. Any row it breaks fails the run, so no human queue fills up with work to redo by hand.

Every factual sentence in that copy carries a claim id pointing at a stored, verified claim. The gate re-checks three things: that the id exists, that the claim was verified, and that the source text actually supports the sentence. The same three checks run in three places, print one error per line, and exit non-zero. Nothing reaches a person until all three pass.

The rule worth stealing: a model may judge, but it may not count, and it may never be the only thing that checks its own work. Counting, formats and eligibility belong in code that fails the run.

Log the run or you cannot tell drift from a bad day

Drift is the same prompt producing worse output this month than last, with nobody having edited the prompt. You only see drift if yesterday is still on disk.

One trap before you trust your automation: a headless model run that prints FATAL can still exit with a success code. Our research pipeline judges a stage on the files it actually wrote, not on what the process returned. Exit codes are not evidence.

What one logged run holds. The failures column is the point: your next evaluation set is already sitting in it.
What you storeWhy you need it later
The exact model string and settingsTells you whether the vendor moved, or you did
The input as it was sent, after validationReproduces the run, and proves the input was not the problem
The full output, including the rejected onesRejected outputs are the honest test cases
The gate result, field by fieldTurns "worse" into which field, on which inputs
Who or what triggered the runNames the owner when the same failure repeats
What one logged run holds. The failures column is the point: your next evaluation set is already sitting in it.

Eleven deterministic scripts produce the figures our store audits quote. The model never invents one. It reads what the scripts measured and writes the explanation: measurement in code, language from the model.

The guardrail is the structure, not the polite instruction

Prompt injection is when text the model reads carries instructions it follows as if you had written them. That text arrives in a customer message, a product feed or a web page.

OWASP ranks it first in its 2025 list for LLM applications, with seven mitigations. Four are architectural: constrain the model’s role, define the output format, enforce least privilege, segregate untrusted content. Three are operational: filter inputs and outputs, require human approval for high-risk actions, test adversarially. The same entry says it is unclear whether fool-proof prevention exists, because the model is stochastic. The March 2025 NIST taxonomy, AI 100-2 E2025, catalogues the same attacks as open problems rather than solved ones.

Read that as an instruction about architecture. A line in your prompt asking the model to ignore malicious instructions is a request, not a control. The control is what the model can reach, and what happens to its output before anything acts on it.

On the phone agent we built for our own product, the model talks and decides nothing that carries liability. Whether a number may be dialled is settled in code: the suppression list first, the calling window second. That is 18 state rules plus the federal default, held by 27 tests, live since April 2026.

The rule that build runs on: fail open where a missing part only costs quality, fail closed where a missing part creates liability. A missing adjective ships. A missing consent record stops the campaign.

What breaks first, and who owns it

The objection here is fair: this reads like a lot of scaffolding for something you can type in ten seconds. The standard for one job is usually a single page, and you write it once per job, not once per prompt. The scaffolding is what lets you change the prompt on a Tuesday without reading 400 outputs on Wednesday.

Five ways a working model job goes wrong. Four of them have nothing to do with your prompt.
What breaksWhat you seeWho owns it
The model changes underneath youOutput shifts with no change in your filesWhoever holds the vendor account, with the version pinned and the sample re-run monthly
The input degradesBlank fields, and confident invented answers filling themWhoever owns the catalogue or the ticket form, validating before the call
The prompt gets edited in a hurryTwo fixes in opposite directions in one weekOne named owner and a change log
Nobody reads the failuresA customer finds the same error for a third timeThe operator, reading the failure log weekly
The job outgrows its sampleA new category appears that the evaluation set never containedThe operator, adding it to the sample before scaling
Five ways a working model job goes wrong. Four of them have nothing to do with your prompt.

Questions operators ask before putting a model into a real job

What is prompt engineering for LLM performance, in one sentence?

It is the work of making one model job repeatable. You pin the model, the settings and the inputs, define the output shape, score a sample of outputs against a written standard, and log each run so you can tell a bad day from real drift.

How many test cases do I need before I trust a prompt?

Enough to cover the shapes the job will really see, weighted towards the ugly ones. Start with the inputs that already caused a complaint. The number matters less than whether every category in the job is represented and whether the standard is written down.

Do I need a prompt management tool to do this?

No. A file with the pinned settings, a folder of test inputs, a written standard and a log of runs will get you most of the way. Buy a tool when the log outgrows what you can read, not before.

The model is right in the chat window and wrong in the job. Why?

In the chat window you supply the missing context without noticing, and you judge each answer as it arrives. In the job, nothing supplies context and nobody reads every output. Write down what you were doing by hand, then make it part of the input.

How often should I re-run the evaluation set?

On every prompt change, and on a fixed schedule too, since the model can move without you. Monthly suits most jobs. Re-run the day your vendor announces a model update.

What this gets back, in hours

Count the handoffs in your store where a person reads machine output and decides whether it can ship. Product copy read before publishing, support replies read before sending, exception summaries read before anyone acts. Each one is an hour a week that nobody budgeted for, and it does not go away because the model got better. It goes away when the job has a standard and a log.

From the intelligence suite

How visible are you in AI-powered search?

SearchIntel shows how your brand appears in ChatGPT, Gemini, and Perplexity — and what it takes to rank in AI-driven results.

Run a free check
Continue reading
Dark poster of grey dots thinning as they pass five coloured vertical bars, with four gold dots continuing on the right, illustrating leads scored by five questions.

AI & Search

How we used Jev for AI lead scoring on 68,000 Upwork jobs

We sent 211 Upwork proposals in six months and not one carries a Hired status. This is the story of what we did about it: the five questions we wrote down, the first run that cost eight cents, the test that showed our own bids were the problem, and the card the team now sees every morning.

Rizwan QaiserSep 25, 2026
12 min read
Two people review a spread of printouts and a wall of visual reference materials in a bright workroom.

AI & Search

How we use Jev to review SEO content before publication

Use TypeSafe AI Jev alongside code checks to give editors a consistent review of draft clarity, source support and next steps before the same issues return in another revision.

Rizwan QaiserSep 21, 2026
6 min read
Loading page