AI data labeling is the work of attaching the correct answer to raw examples (a category on a support ticket, a box around each pallet in a warehouse photo, the VAT rate on an invoice) so a model can learn from them or be tested against them. People can do it, models can do it, and the sensible default in 2026 is a mix: a model drafts the label and a person checks it against a written guideline. If you build on a large language model instead of training your own, the labeled set that matters most is usually a few hundred carefully checked test examples.
We're a small software team in Ankara, and labeling comes up in our AI work for clients: quality checks and a correction loop for an AI bookkeeping assistant, an LLM workflow that pulls data out of PDF field tickets, and an exercise-program generator a physiotherapy clinic uses. This post is for teams in a similar spot: you need labels you can trust, there's a budget and a deadline, and nobody's job title is "annotator".
What gets labeled
The shape of a label depends on what the model has to do.
Task | What one label looks like | Example |
|---|---|---|
Classification | One or more categories per item | Support message → "refund request" |
Spans and entities | A stretch of text plus its type | "Acme Ltd" → organization |
Field extraction | Key-value pairs from a document | Invoice → supplier, total, VAT rate |
Boxes, polygons, masks | Shapes drawn on an image or video frame | A box around each pallet |
Transcription | Text for audio or handwriting | Call recording → transcript |
Ratings and preferences | A score, or a choice between two outputs | Which of two answers is more accurate |
The last row matters most for LLM products. Ratings and preferences are how teams evaluate and tune model output, and they're the hardest labels to keep consistent, because "better" means something different to each person until someone writes it down.
Decide first: training data or test data
Before you count examples, decide what the labels are for.
If you're training or fine-tuning your own model, say a detector for a defect only your production line has, you need a large labeled training set and a separate test set the model never sees. Labeling is then often the biggest cost in the project, so methods that speed it up (model-assisted pre-labeling, active learning) are worth setting up early.
If you call a frontier LLM through an API, you often need no training labels at all. You need an evaluation set: real inputs with known correct outputs, so you can measure a prompt, catch regressions and compare models when a new one comes out. On Jenesys AI's bookkeeping assistant, which proposes the category, VAT rate and tracking categories for each invoice, custom models we built were later overtaken by frontier models. That will keep happening, and an evaluation set built from your own data is what lets you test each new model before you switch.
How big should an evaluation set be? Work backwards from the precision you need. If a system gets 90% of items right, the 95% confidence interval on that figure is roughly ±8 percentage points with 50 test examples, ±4 with 200 and ±2 with 1,000. If two prompts differ by three points, even 200 examples may not separate them reliably. Rare cases need extra attention: a category that shows up in 2% of traffic appears about ten times in 500 random examples, so add more of them on purpose and report their results separately. If a rare class has too few real examples for training, synthetic data can help fill the gap; keep the evaluation set real.
Write the guideline before anyone labels
Many label quality problems start in the guideline. Two careful people who read different things into "complaint" will produce different labels, and no tool can fix that afterwards.
A useful guideline is short and full of examples:
- Each label with a one-line definition, one example that clearly belongs and one that looks similar but doesn't.
- Edge cases you've already decided ("a message that asks for a refund and complains about delivery gets both labels").
- Span boundaries: does "Acme Ltd's" include the "'s"? Is "Dr." part of a name?
- What to do when unsure. Flagging beats guessing, because flagged items show you where the guideline is thin.
- A version number, so you know which labels were made under which rules.
Then run a pilot. Two people label the same 50 to 100 items independently, you compare, and each disagreement becomes a guideline fix or a documented hard case. Expect two or three rounds. Time how long an item takes while you're at it; that number drives the budget more than anything else.
Who does the labeling
Option | Good for | Watch out for |
|---|---|---|
Your own domain experts | Medical, legal, financial or other judgment-heavy work | Expensive, slow, and experts disagree too |
Your product team | Small evaluation sets, first pilots | Can't keep up with volume; people see what they expect |
A managed vendor | Large volumes with QA included | Onboarding time, who can see your data, tool lock-in |
Crowd platforms | Simple, repetitive, high-volume tasks | Weak on nuance; needs gold questions mixed in |
An LLM with human review | Text and document tasks with a clear guideline | Plausible-looking errors that repeat systematically |
For a first evaluation set, we'd have the people who own the product label it themselves. It's slower than outsourcing, but they'll find the guideline's gaps in an afternoon, and they're the ones who will have to interpret the scores later.
Using an LLM to label without fooling yourself
LLMs are good labelers for many text tasks. A study published in PNAS in 2023 found that ChatGPT's zero-shot labels beat crowd workers on Amazon Mechanical Turk on most of the tasks it tested (relevance, stance, topic and frame detection on tweets and news articles), at under $0.003 per annotation. Models have improved a lot since then.
The catch is that an LLM is very consistent, including when it's wrong. In the same study, agreement between ChatGPT's own repeated runs was higher than agreement between trained human annotators. High agreement can hide an error that repeats on every similar item. Treat the model like a new labeler:
- Have people label a gold set first (items whose correct answer has been settled), using the same guideline.
- Run the model on the gold set and compare results for each class separately. An overall score hides the weak classes.
- Accept the model's labels for classes where it matches the gold set well. Send the rest, plus anything it marks as uncertain, to people.
- Store the model name, version and prompt with every label it produces.
- Keep sampling: a small share of automated labels goes back to a person every week.
Step 4 sounds like bookkeeping until something breaks. On the field-ticket automation we built with an agency partner for an oilfield services company, an n8n workflow uses an LLM to pull the customer, location, AFE/PO number, line items and hours out of about 100 PDF tickets a day. What broke in production was mostly the LLM API's rate limit (HTTP 429), and the fix was falling back to alternative models. In a labeling pipeline, the same fallback means some labels come from a different model, and those need their own check against the gold set.
Measuring label quality
Label quality comes down to two numbers that are easy to mix up.
Accuracy against a gold set tells you how often labels are right. It needs items whose correct answer was settled carefully, ideally by an expert or by two labelers discussing each case.
Agreement tells you how consistent labelers are with each other, which is the part a guideline controls. For two labelers, Cohen's kappa corrects raw agreement for the agreement you'd expect by chance. For three or more, use Fleiss' kappa or Krippendorff's alpha. The widely cited Landis and Koch scale calls a kappa of 0.61 to 0.80 "substantial" and anything above 0.80 "almost perfect". Treat those bands as conventions: a subjective task such as tone can sit lower and still be useful, while a field like an invoice total should be close to perfect.
Computing kappa takes a few lines. Get the pilot into a CSV with one row per item and one column per labeler. If your tool exports one row per annotation instead, df.pivot(index="item_id", columns="annotator", values="label") turns it into that shape; rename the two columns to match the code. The cross-table at the end shows which labels get confused with each other, and that's your to-do list for the next guideline version.
import pandas as pd
from sklearn.metrics import cohen_kappa_score
df = pd.read_csv("pilot_labels.csv").dropna(subset=["labeler_a", "labeler_b"])
kappa = cohen_kappa_score(df["labeler_a"], df["labeler_b"])
print(f"Cohen's kappa: {kappa:.2f}")
diff = df[df["labeler_a"] != df["labeler_b"]]
print(pd.crosstab(diff["labeler_a"], diff["labeler_b"]))Don't expect zero errors. Researchers who checked the test sets of ten widely used benchmark datasets estimated an average label error rate of at least 3.3%, and at least 6% for the ImageNet validation set. You can apply the same idea to your own data: train a model with cross-validation, find the items where it confidently disagrees with the given label, and re-check those first. The open-source cleanlab library implements it.
Tools
For a few hundred classification items, a shared spreadsheet with a locked dropdown of allowed values is fine. Past that, or for spans, images or audio, use a labeling tool.
Label Studio is open source and handles text, images, audio, video and time series. The free Community edition can show predictions from a model you connect as pre-labels, but reviewer assignment, overlap settings and agreement metrics are in the paid editions. On Community, export the labels and compute agreement yourself, as above.
CVAT is open source (MIT license) and built for images, video and 3D point clouds. It can run models such as SAM or YOLO as serverless functions to pre-draw shapes that a person then corrects.
Managed platforms and vendors such as Labelbox make sense when you need a workforce as well as software. Ask where the data is stored, who can see it, and whether you can export everything (labels and their history) in an open format. Older guides often point to Amazon SageMaker Ground Truth; AWS closed it to new customers on 30 July 2026, so it's only an option if your account already uses it.
Labels your product can collect
Some of the best labels come from people doing their normal work. When a user swaps a suggestion or fixes a field, they've told you what the right answer was. On the exercise-program generator we build for a sports physiotherapy clinic, coaches rate generated programs with a thumbs up or down, swap exercises for alternatives and regenerate; this year we're adding stored AI-versus-coach comparisons so the logic can be checked against past athletes. On Jenesys's assistant, our engineer built the pipeline that feeds customer corrections back into the embeddings store the models draw on.
If you design for this from the start, log three things for every AI output: what the model produced, what the user finally kept, and which model and prompt version produced it. The difference between the first two is a label you didn't pay for. It's skewed toward the mistakes users bother to fix, so use it alongside a gold set.
Privacy and regulation
Labeling usually means showing real data to people, or to a third-party model, that wouldn't otherwise see it. Mask what the task doesn't need: someone classifying support messages doesn't need customer names or phone numbers. If personal data goes to a labeling vendor or an LLM API, under GDPR they act as your processor, which means a data processing agreement and, for transfers outside the EEA, a valid transfer mechanism.
If your system counts as high-risk under the EU AI Act, Article 10 requires data governance that covers data-preparation steps "such as annotation, labelling, cleaning", and training, validation and test sets that are relevant, representative and as free of errors as possible. After the 2026 "Digital Omnibus" amendment, these obligations apply from 2 December 2027 for the high-risk uses listed in Annex III and from 2 August 2028 for AI built into regulated products such as medical devices. Guideline versions, pilot agreement scores and a record of who or what produced each label are what that documentation is built from. Our AI governance post covers the rest of the Act's requirements.
Frequently asked questions
Is data labeling the same as data annotation?
In practice, yes: both mean adding the answer a model should learn from or be tested against. Some teams keep "annotation" for richer markup such as boxes, spans and transcripts and say "labeling" for picking a class, but tools and vendors use the two words interchangeably.
How much does data labeling cost?
Mostly people's time: items × seconds per item × number of passes, plus guideline work and review. Labeling 2,000 support messages at 20 seconds each takes about 11 hours for one pass; double-labeling a fifth of them to measure agreement adds about 2 more. Measure seconds per item in the pilot instead of guessing. Vendors usually price per item or per hour, and rates vary a lot by task.
How many labeled examples do I need?
For an evaluation set, a few hundred real examples is a sensible start (see the confidence intervals above), with extra rare cases. For training your own model it depends on the task, so train on a pilot set and watch how the test score moves as you add data.
Should we outsource data labeling?
Once agreement is stable, the volume can go to a vendor. Keep the guideline, the gold set and the review of disagreements in-house, because they encode what your product is supposed to do.
If you're planning an AI feature and want to talk through its evaluation set or labeling plan, you can reach us through our data and AI page.
Related Articles
MLOps Guide: What to Set Up First, and What Can Wait
MLOps gets a model into production and keeps it useful there. Here is the order we'd set it up in, with current MLflow and DVC examples, and what changes for LLM features.
Read More: MLOps Guide: What to Set Up First, and What Can WaitComputer Vision Applications: Where It Works and Where It Struggles
Where computer vision works today, from inspection lines to invoices and medical scans, what makes some applications hard, and when a general vision model saves you training your own.
Read More: Computer Vision Applications: Where It Works and Where It StrugglesAI Agent Development: When You Need One and How to Build It
An AI agent is a language model working in a loop with tools. When you need one, the loop in Python, choosing a framework, keeping it safe, and what each run costs.
Read More: AI Agent Development: When You Need One and How to Build It
