About LLM Annotation Tool
LLM Annotation Tool classifies texts with large language models. You define a set of labels, add the texts to classify, and one or more models assign labels to each text. You can then compare the models with each other, and with labels you've set yourself.
This web application is done as part of the demo paper submission.
How to use it
- Add texts. Type them in, or upload a JSON Lines file with one
{"text": "..."}object per line. - Add labels. Give each one a name, and optionally a description and an example; both are included in the instructions to the model.
- Choose models in Advanced Settings. Up to three can run side by side, each with its own batch size.
- Estimate, then annotate. The estimate shows the expected cost per model before anything is spent.
- Review the results in the Labels, Chart, Compare, Accuracy and Usage tabs, and export them as JSON.
To check a setup cheaply first, use Test run in Advanced Settings to annotate only some of the texts.
Measuring accuracy
Give some texts golden standard labels, the labels you know to be correct, by ticking them under each text or by adding a "labels" field in the uploaded file. The Accuracy tab then measures each model against them:
| Measure | What it means |
|---|---|
| Exact match | Share of texts given exactly the truth labels |
| Precision | Of the labels a model gave, the share that were correct |
| Recall | Of the correct labels, the share the model gave |
| F1 | Micro-average. cvombines precision and recall into one score |
| Macro F1 | The average F1 across labels, so rare labels count as much as common ones |
| Cohen's kappa | Agreement corrected for chance: 1 is perfect, 0 is no better than chance |
Your data and API keys
- Texts, labels and results stay in your browser page. Reloading the page clears them, so export results you want to keep.
- If you add your own OpenRouter API key, it's kept encrypted in your browser's session cookie, never stored on the server, and model calls with it are billed to your OpenRouter account.
- Texts are sent to the models you choose, through OpenRouter. Don't annotate anything you aren't allowed to share with those providers.
About the project
LLM Annotation Tool is made by Dr Maxim Filimonov, Yuefeng Shi & Prof Jose Camacho Collados.
School of Computational and Mathematical Sciences, Cardiff University.
Please address all questions to Dr Maxim Filimonov