Practical, in-depth guides for people who build with AI.
Tutorials, prompt engineering, and developer reference for people who build with AI — not just read about it.
Clean Up QuickBooks POS Data Before You Migrate: Merge Duplicates and Run Verify Data
Merge duplicate items and customers, then check the company file for damage, so you do not carry a mess into your next system.
Read the full story →Latest articles
Calibrate an LLM Judge Against Human Labels Before You Trust Its Scores: Kappa, Swap Tests, and Per-Class Errors
An LLM judge is a measuring instrument. Before its scores drive a release decision, check how often it agrees with careful human reviewers, where it is biased, and which classes it gets wrong.
Don't Run a Tool Call Until Its Block Closes: Gating Streamed Tool Arguments
Streaming lets a chat UI feel fast. For tool use it also means your client holds a call that has started but not finished, so the code reading the stream needs a rule for when an argument becomes a command.
Fuzz the Arguments, Not the Prompt: Property-Based Tests for Agent Tool Validators
Models send near-miss tool arguments: booleans as numbers, trailing newlines, Unicode digits. Three properties and a property-testing library find the validator bugs hand-written cases miss.
Quarantine Flaky Eval Cases: Repeat Each Case, Sort by Stability, and Fix the Grader Before the Prompt
A noisy overall score usually comes from a minority of unstable cases. Run each case several times, bucket by outcome, and handle graders, inputs and borderline tasks differently.
Single-Flight for LLM Calls: Coalescing Identical In-Flight Requests Without Sharing the Wrong Answer
Duplicate requests that arrive while the first is still running slip past any cache. A small coalescing layer fixes that, if you get the key, cancellation and error handling right.
Stuck Agents Don't Announce Themselves: Detecting Loops With Call-and-Result Fingerprints
A step cap ends a stuck run after the money is spent. Fingerprint each tool call and its result, tell polling from looping, and respond in stages before the budget is gone.
Read 40 Failures Before You Edit the Prompt: Building a Failure Taxonomy From Eval Results
A pass rate says how often you fail, not why. How to label a sample of failing eval cases, tally the labels, and let the dominant failure mode, including a bad grader, decide your next fix.
Make Side-Effecting Tool Calls Idempotent: Derived Keys, a Claim Ledger, and the Retry That Sends Two Emails
A timeout doesn't tell you whether an agent's write happened. How to derive idempotency keys in the harness, enforce them with an atomic ledger, handle downstreams without key support, and test the lost-acknowledgement case.
Canary Tokens for LLM Prompts: Detecting System Prompt and Cross-Tenant Context Leaks in Production
Plant a unique token in the text you want to protect, scan every output for it, and turn silent leakage into an alert you can test. Includes a streaming-safe scanner and what canaries cannot catch.
Prompt Ablation: Deleting Instructions One at a Time to Find Which Ones Actually Work
Production prompts accumulate rules nobody can justify. A paired, noise-aware ablation loop shows which clauses are load-bearing, which are dead, and which are quietly hurting.
Permission-Aware Retrieval: Enforce Document Access Before the Model Ever Sees It
A prompt instruction can't keep a RAG assistant from leaking restricted documents. Here is how to filter on the retrieval path, fail closed, and test it with a cross-user matrix.
Model Output Is Untrusted Markup: Rendering LLM Markdown Without XSS or Image-and-Link Exfiltration
A rendering pipeline, URL allowlist hook, CSP backstop and CI fixture table for showing model-generated Markdown safely, including the exfiltration path that sanitizers keep by design.
Break the Tools on Purpose: Fault-Injection Tests That Catch Agents Claiming Work They Didn't Do
Happy-path agent tests miss the costly failure: a confident report of an action that failed or ran twice. Inject tool faults on a fixed schedule, record real side effects in a ledger, and check the agent's claims against it.
Anthropic Goes Public: ANT Jumps 17% in a Record Nasdaq Debut
Anthropic priced its IPO at $83, opened at $111.50 and closed its first day at $97.17, worth about $1.8 trillion. Here are the numbers, the owners, the criticism and what it means for developers.
Load Testing an LLM Endpoint: Real Token Mixes, Open-Loop Arrivals, and Streaming Metrics
A fixed prompt hammered by a worker pool hides queuing and flatters your capacity. Build the workload from logs, schedule arrivals in advance, and measure time to first token, truncated streams, and the knee in tokens per second.
Hedged Requests for LLM Calls: Cutting Tail Latency Without Doubling the Bill
When a few calls take far longer than the rest, a second copy sent at the p95 mark can rescue the tail. Here is how to pick the delay, cancel the loser, cap the spend, and spot when hedging can't help.
Pick an Abstain Threshold From a Risk–Coverage Curve: Error Budgets for LLM Features That Can Say "Not Sure"
Stop hardcoding confidence < 0.8. Measure coverage against selective risk on labeled data, choose the threshold on an upper confidence bound, confirm it on a held-out split, and re-fit it whenever the model or prompt changes.
Is That Eval Gain Real? Paired Tests and Confidence Intervals for Prompt and Model Changes
A 3-point jump on 200 cases can be pure noise. Use paired comparisons, an exact McNemar test, clustered bootstrap intervals and A/A runs to tell real improvements from run-to-run variance.
Cluster Production Queries Before You Write Evals: Finding the Intents Your Test Set Is Missing
Embed a redacted sample of real queries, cluster them with HDBSCAN, and map your eval cases onto the same clusters to see which user intents your test set never checks.
Five Copies of the Same Paragraph: Deduplicating and Diversifying Retrieved Context for RAG
Top-k similarity can fill your context with near-identical chunks and push out the one that holds the exception. Hashing, maximal marginal relevance and per-source caps fix it, if you measure fact coverage rather than relevance alone.
Metamorphic Tests for LLM Features: Checking How Outputs Should Change When There's No Answer Key
You can't assert an exact answer for a summary or a classifier's judgment, but you can assert how outputs should relate when you change the input in controlled ways.
An agent checkpoint needs a workspace–transcript pair, not two latest files
A reproducible local Python model of mismatched recovery state, with explicit limits on what it proves.
From our articles
“An LLM judge is a measuring instrument. Before its scores drive a release decision, check how often it agrees with careful human reviewers, where it is biased, and which classes it gets wrong.”
Calibrate an LLM Judge Against Human Labels Before You Trust Its Scores: Kappa, Swap Tests, and Per-Class Errors“Streaming lets a chat UI feel fast. For tool use it also means your client holds a call that has started but not finished, so the code reading the stream needs a rule for when an argument becomes a command.”
Don't Run a Tool Call Until Its Block Closes: Gating Streamed Tool Arguments“Models send near-miss tool arguments: booleans as numbers, trailing newlines, Unicode digits. Three properties and a property-testing library find the validator bugs hand-written cases miss.”
Fuzz the Arguments, Not the Prompt: Property-Based Tests for Agent Tool ValidatorsFrequently asked questions
Is TechInsights free to read?
Yes — every article is free to read, and so are bookmarks, reading history, and submitting your own articles, jobs and courses.
How often is new content published?
New tutorials, prompt-engineering write-ups, and industry notes are published continuously — check the feed or subscribe to the newsletter to stay current.
How is TechInsights funded?
By advertising, plus optional paid featured placements for job and directory listings. Nothing you read is behind a paywall.
Can I contribute or pitch an article?
Yes — any signed-in reader can submit a guest article, a job, or a course. An editor reviews every submission before it goes live.