llm-batch-annotate
llm-batch-annotate is a Python package for running reproducible LLM annotation workflows over tabular datasets. It materializes units from source rows, groups them into provider requests, submits them through an execution adapter, parses structured outputs, validates coverage, and writes run artifacts for auditability.
Highlights
- single-item and grouped annotation workflows
- provider-agnostic task, builder, parser, and artifact abstractions
- concrete OpenAI Batch adapter
- resumable CLI-driven runs with persisted manifests
- user-owned row ids via
source_input.row_id_column - per-row parsed outputs in
parsed/responses.jsonl - example configs, prompts, schemas, and sample data under
examples/
Installation
When the package is published:
pip install llm-batch-annotate
From a local checkout:
python3 -m venv .venv
.venv/bin/pip install -e .[test,docs]
Quickstart
Single-item example:
export OPEN_AI_KEY="your-key"
llm-batch-annotate run examples/config/run_config.json --run-id example-single --no-poll-until-terminal
llm-batch-annotate resume examples/config/run_config.json example-single --poll-interval 2m
Grouped example:
export OPEN_AI_KEY="your-key"
llm-batch-annotate run examples/config/run_config_2.json --run-id example-grouped --no-poll-until-terminal
llm-batch-annotate resume examples/config/run_config_2.json example-grouped --poll-interval 2m
Documentation
Project documentation is intended to be hosted on Read the Docs. The Sphinx source lives under docs/.
Release notes for the current series live in CHANGELOG.md and docs/releases.md.
Planned public docs include:
- installation
- quickstart
- CLI reference
- config reference
- OpenAI Batch provider guide
- worked examples
- API reference
- development and release notes
Repository layout
src/llm_batch_annotate/: package sourceexamples/: tracked example inputs and configstests/: pytest suitedocs/: Sphinx documentation source
Generated example runs are written to examples/runs/ and are intentionally excluded from version control.
Metadata
Release files for llm-batch-annotate 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llm_batch_annotate-0.1.2.tar.gz | 60.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_batch_annotate-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 117.4 kB
Release files / llm_batch_annotate-0.1.2.tar.gz
| Download URL | llm_batch_annotate-0.1.2.tar.gz |
|---|---|
| Size | 60.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c3a30e79288656b3ce725940c24e3e6a1e8ef267b4cc043ec26bd9c2e2a856d
|
|
BLAKE2b-256 checksum How to use checksums |
fee08d55a8a85e1d852d603aa1f750dca413c6c57aefe375f10a97368860e522
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 4, 2026.
Transparency logRelease files / llm_batch_annotate-0.1.2-py3-none-any.whl
| Download URL | llm_batch_annotate-0.1.2-py3-none-any.whl |
|---|---|
| Size | 57.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
37da51f858a3530ef518d820c2b54658399fd4320a65abf14df891f907543a73
|
|
BLAKE2b-256 checksum How to use checksums |
6903f349b76175f52389479635cc3a3fb01b85727c4dd37043ead85ba4058afe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 4, 2026.
Transparency log