Back to work

How I evaluate LLM features

Method · Laqta and GazaSouq · 2026

Labelled data first, then one change at a time

I don’t trust an AI feature because a few outputs look right. I build a labelled set, pick a metric that matches the decision the feature supports, change one thing, and measure again on the same set and on data the change has not seen.

The examples below come from Laqta, my local Arabic tool that turns posts from Telegram and Facebook groups into a market list and a daily summary, and from GazaSouq, the marketplace I build and operate.

The loop

Every example on this page follows the same four steps.

  1. Labelled set

    Examples labelled by hand or taken from a reviewer’s decisions, kept fixed so results stay comparable.

  2. Metric

    One number that matches the decision: accuracy, Cohen’s kappa, agreement with a rules baseline, or defects caught.

  3. Change

    One change at a time: a rule, a prompt, a model, or a validator.

  4. Re-measure

    Run the same set again, then check the result on data the change has not seen.

The new result becomes the baseline for the next change.

Examples

Each example lists the set, the metric, the change, and what the re-measurement showed, with the date it was measured.

Category suggestions in Laqta

Laqta · independent project
Labelled set
479 products, labelled with the categories a reviewer chose in the send queue and edit log.
Metric
Category accuracy.
Change
Improved the word rules that suggest a category. The LLM was not changed.
Re-measure
Accuracy rose from 78.7% to 90.4%. Because the rules were tuned partly on that set, I also checked 271 later products: 81.9% to 92.3%.
78.7% → 90.4%479 reviewed productsFigures as of 2026-11-0281.9% → 92.3%271 later productsFigures as of 2026-11-02

Label reliability in Laqta

Laqta · independent project
Labelled set
614 pairs of posts that were labelled twice, and 3,835 posts labelled by both the rules and Claude.
Metric
Cohen’s kappa between the two labels, and agreement between the rules and the LLM.
Change
Added a chi-square drift check to catch changes in incoming posts.
Re-measure
Topic κ was 0.79, and the rules and Claude agreed on 95% of posts. The drift check needs three days of data before it gives a verdict.
κ 0.79topic agreement on 614 pairsFigures as of 2026-10-2695%rules–Claude agreement on 3,835 postsFigures as of 2026-10-26

A batch that failed on half an emoji

Laqta · independent project
Labelled set
A 10,000-request batch sent to the Anthropic Batch API.
Metric
Requests the API rejects.
Change
Two requests held half an emoji (a lone surrogate), and the batch failed. I added a request validator, and a guard test fails the project’s check script for any sender that skips it.
Re-measure
Requests from every sender now pass through the validator before a batch is submitted.
10,000requests in the failed batchFigures as of 2026-11-03

Seeded defects for an AI review pipeline

GazaSouq · independent project
Labelled set
Pages with deliberately seeded defects, so every real problem is known in advance.
Metric
Share of seeded defects caught, and false positives.
Change
Built a 9-subagent review pipeline covering UX, RTL, accessibility, and performance, then fixed what it found.
Re-measure
It caught 87% of seeded defects with 0 false positives, and the fixes cut home-page LCP from 8.3 s to 3.0 s.
87%seeded defects caught, 0 false positivesFigures as of 2026-108.3 s → 3.0 shome-page LCPFigures as of 2026-10

Guardrails around the model

  • In Laqta, phone numbers, links, e-mail addresses, handles, and long digit runs are removed before any text reaches the model.
  • In GazaSouq, AI suggestions go into review queues; nothing the model writes is published without approval.