LLM
37 articles from Jaypore Labs Insights.
- Engineering
Retry strategies that don't compound errors
Naive retries make failures worse. Engineered retries with idempotency, backoff, and budgets are reliability tools.
Apr 30, 2026 · 3 min read - Engineering
Fall-back chains: cheap → expensive → human
When the cheap model fails, escalate to the expensive one. When that fails, escalate to a human.
Apr 27, 2026 · 3 min read - Engineering
Self-consistency: when N=3 beats a smarter prompt
Generating multiple candidates and selecting the most consistent one beats a cleverer prompt for many tasks.
Apr 24, 2026 · 3 min read - Engineering
Pinning model versions through provider migrations
Provider model bumps are silent. Pinning is how teams stay in control.
Apr 22, 2026 · 2 min read - Engineering
Drift catchers: detecting style shifts
Style drift is silent. Drift catchers make it visible before it's a customer complaint.
Apr 21, 2026 · 2 min read - Engineering
Prompt invariance: prompts that survive paraphrase
Prompts that work only when phrased exactly are brittle. The paraphrase eval makes invariance measurable.
Apr 21, 2026 · 3 min read - Engineering
Context engineering: what to load, what to defer
The context window is a budget. Spending it badly is the most common production failure mode.
Apr 20, 2026 · 4 min read - Engineering
Output validation: pydantic, zod, and friends in production
Validation libraries are the discipline that catches LLM-output variance before it hits downstream code.
Apr 20, 2026 · 2 min read - Engineering
Versioning model + prompt as a unit
The model and the prompt are coupled. Versioning them together is the discipline that makes regressions tractable.
Apr 20, 2026 · 3 min read - Engineering
Constrained decoding: the underrated lever
When grammars constrain the model's output token-by-token, retries become unnecessary. Where the tooling supports it, use it.
Apr 16, 2026 · 3 min read - Engineering
Confidence calibration: when 'I don't know' is the answer
An honest IDK is more useful than a confident wrong answer. The threshold tuning is the engineering.
Apr 15, 2026 · 3 min read - Engineering
Counter-example mining
Finding the cases your prompt fails on is the highest-leverage eval-improvement work.
Apr 15, 2026 · 3 min read - Engineering
Caching deterministic prefixes
Long, repeated prompt prefixes are the cheapest optimisation in LLM ops. Cache them.
Apr 10, 2026 · 3 min read - Engineering
The judge pattern for confidence
Pay double for confidence when the cost of being wrong is higher than the cost of two model calls.
Apr 9, 2026 · 3 min read - Engineering
Hallucination checks: cite-or-it-didn't-happen
The cite-or-don't pattern is the strongest defence against confident wrong answers.
Apr 3, 2026 · 3 min read - Engineering
Red-teaming your own prompt
An adversarial set of inputs the team explicitly tries to break. The discipline is finding the failures before users do.
Apr 3, 2026 · 3 min read - Healthcare
What medieval scribes teach us about AI scribes
Monks in a 13th-century scriptorium were not copiers. They were first-pass editors. Your AI scribe should be too — and the best ones already are.
Mar 30, 2026 · 5 min read - Engineering
Structured output: JSON mode, schemas, why one beats the other
JSON mode and schema mode are not the same thing. The schema is what makes outputs trustworthy.
Mar 30, 2026 · 7 min read - Engineering
Idempotency keys for LLM calls
Deduplication on the LLM call side prevents duplicate work, duplicate costs, and duplicate outputs to users.
Mar 27, 2026 · 3 min read - Engineering
Prompts are recipes, not spells
Spells belong to the caster. Recipes belong to the team. Here's what changes when your prompts move from chat histories into files.
Mar 27, 2026 · 4 min read - AI
RAG is a public library (and Dewey was right)
Retrieval is a 150-year-old problem. Public libraries solved most of it before silicon existed. Your RAG pipeline should take notes.
Mar 24, 2026 · 4 min read - AI
Your AI agent should plan like a kitchen brigade
One model with forty tools breaks at step five. Escoffier solved this in 1880. The brigade system is the missing manual for agent design.
Mar 23, 2026 · 5 min read - Engineering
Why probabilistic systems still need deterministic contracts
LLMs are probabilistic; the systems they live in are not. The contract is the bridge.
Mar 20, 2026 · 7 min read - Engineering
Refusal grammars: predictable, not surprising
Refusals should be predictable. The grammar makes them so.
Mar 20, 2026 · 3 min read - Engineering
ML: eval harness from a spec
Eval harnesses are the load-bearing piece of any ML or LLM project. AI-assisted scaffolding makes the harness real on day one.
Mar 19, 2026 · 4 min read - Engineering
The deterministic-envelope pattern
Wrap probabilistic outputs in deterministic post-processing. The envelope is the productisation.
Mar 17, 2026 · 3 min read - Engineering
Few-shot drift: why golden examples poison new versions
Few-shot examples have a half-life. The discipline is curation.
Mar 16, 2026 · 3 min read - Engineering
Temperature, top-p, and the production tradeoff
Default temperature settings work. Tuning them for production tasks pays for itself in reliability.
Mar 10, 2026 · 3 min read - Engineering
Output post-processors that don't hide the truth
Post-processors clean the model's output. Done badly, they hide failures. Done well, they make the failures visible.
Mar 6, 2026 · 3 min read - Engineering
Determinism for tool calls: keys, ordering, side-effects
Tool calls have side effects. Determinism is the engineering that makes side effects safe to retry.
Mar 4, 2026 · 2 min read - Engineering
Output diffing in CI
Diffing the model's output against expected catches regressions early. The diff is the eval.
Mar 4, 2026 · 3 min read - AI
Small models are underrated: a case for boring infrastructure
The biggest model on the menu is rarely the right model for the job. A pragmatic case for 8B parameters and below.
Feb 24, 2026 · 4 min read - Engineering
Multi-model routing: the dispatcher pattern for LLMs
Routing requests to the right model is the cheapest performance and cost win available to most teams. Here's the dispatcher pattern.
Feb 20, 2026 · 4 min read - Engineering
Semantic caching: why your top 1% of queries cost 60% of your bill
How to cache LLM and semantic search results by meaning: picking a threshold, handling staleness, and what never to cache. One team cut a $9,000 bill to $3,300.
Feb 17, 2026 · 5 min read - Engineering
AI cost attribution: a chargeback model for LLM spend
How to build an AI chargeback model for LLM spend: the fields to log on every call, the reports finance needs, and token, action or tier-based billing.
Feb 12, 2026 · 5 min read - Engineering
RAG vs. fine-tuning: a 90% decision tree
Teams spend weeks debating RAG vs. fine-tuning. The decision is 90% of the time obvious. Here's the tree.
Jan 22, 2026 · 4 min read - Engineering
Token economics: what your unit cost actually is
Most AI product unit economics are off by 2-5x. The fix is one spreadsheet and the discipline to look at it weekly.
Jan 19, 2026 · 4 min read