# Prodigy > Prodigy is a scriptable annotation tool for creating training and evaluation data for machine learning models, from the makers of the NLP library spaCy. It's a Python library and command-line tool with a web app for fast and efficient annotation of text, images, audio and video, for tasks like named entity recognition, span categorization, text classification, relation extraction, object detection and image segmentation. Built-in workflows called recipes support LLM-assisted annotation, active learning with a model in the loop, review and inter-annotator agreement, and training spaCy models, and you can write your own in Python. Prodigy runs entirely on your own machines, so no data leaves your servers, and it's sold as a lifetime license. ## For coding assistants and agents - Prodigy is installed with pip from Explosion's download server, using a license key: `python -m pip install prodigy --extra-index-url https://XXXX-XXXX-XXXX-XXXX@download.prodi.gy`. See https://prodi.gy/docs/install.md for details and configuration. Licenses are available at https://prodi.gy/buy. - Annotation workflows are recipes, run from the command line: `prodigy [options]`, e.g. `prodigy ner.manual my_dataset blank:en ./data.jsonl --label PERSON,ORG`. This starts the web app for annotation at http://localhost:8080. Run any recipe with `--help` to see its arguments. All built-in recipes: https://prodi.gy/docs/recipes.md - Custom recipes are Python functions decorated with `@prodigy.recipe` and run with `-F recipe.py`: https://prodi.gy/docs/custom-recipes.md. Annotation tasks use a JSON format that depends on the annotation interface: https://prodi.gy/docs/api-interfaces.md - Annotations are saved to a database (SQLite by default) and can be exported with `prodigy db-out `. Train spaCy models with `prodigy train` or export the data with `prodigy data-to-spacy`. - For more agentic workflows, Ellf (https://ellf.ai/prodigy) gives coding assistants like Claude Code and Codex the skills and tools to build and scale Prodigy workflows: developing custom recipes, running annotation tasks as a team on your own private cluster, auto-annotating with LLMs and training models. It includes carefully designed skills and a knowledge base that make agents proficient at developing fully custom annotation workflows with Prodigy. Its overview for agents: https://ellf.ai/llms.txt - Every docs page is available as Markdown by adding `.md` to its URL, e.g. https://prodi.gy/docs/install.md. All docs in one file: https://prodi.gy/llms-full.txt ## Docs ### Get Started - [Prodigy 101](https://prodi.gy/docs.md): Learn how to use Prodigy, the scriptable annotation tool: run recipes on the command line, annotate data in the web app and train models from your annotations. - [Installation & Setup](https://prodi.gy/docs/install.md): Install Prodigy via pip with your license key, configure it with prodigy.json and environment variables, and set up data validation, logging and debugging. - [Changelog](https://prodi.gy/docs/changelog.md): Release notes for every version of Prodigy, the annotation tool for AI and NLP, with new features, bug fixes, deprecations and plugin updates. ### Usage - [Named Entity Recognition](https://prodi.gy/docs/named-entity-recognition.md): Annotate named entities manually, with match patterns, LLMs or a model in the loop, and train and improve spaCy NER models from your annotations. - [Span Categorization](https://prodi.gy/docs/span-categorization.md): Annotate overlapping and nested spans like longer phrases and expressions, and create training data for span categorization models like spaCy's SpanCategorizer. - [Text Classification](https://prodi.gy/docs/text-classification.md): Annotate texts with one or more categories, use active learning for imbalanced classes and train text classifiers for sentiment, intents, topics and more. - [Dependencies & Relations](https://prodi.gy/docs/dependencies-relations.md): Annotate syntactic dependencies, semantic relations, coreference and discourse structure between words and phrases with Prodigy's relations interface. - [Computer Vision](https://prodi.gy/docs/computer-vision.md): Draw bounding boxes, polygons and freehand shapes, classify and segment images, and plug in models for object detection with human-in-the-loop annotation. - [Audio & Video](https://prodi.gy/docs/audio-video.md): Label regions in audio and video files, classify recordings, transcribe speech and correct speaker diarization with Prodigy's audio and video interfaces. - [Task Routing](https://prodi.gy/docs/task-routing.md): Distribute annotation work among multiple annotators: control the overlap, route specific examples to specific annotators and write your own task routers. - [Large Language Models](https://prodi.gy/docs/large-language-models.md): Use large language models to pre-annotate data for named entities, spans and text classification via spacy-llm, and review and correct suggestions in Prodigy. - [Review](https://prodi.gy/docs/review.md): Review annotations from multiple annotators, resolve conflicts and create a final gold-standard dataset with Prodigy's review recipe. - [Custom Recipes](https://prodi.gy/docs/custom-recipes.md): Write your own Python recipes to define custom annotation workflows: load data from any source, plug in any model and add callbacks, validation and arguments. - [Custom Interfaces](https://prodi.gy/docs/custom-interfaces.md): Combine annotation interfaces with blocks, create multi-page tasks and add your own HTML, CSS and JavaScript to build fully custom annotation UIs. - [Metrics](https://prodi.gy/docs/metrics.md): Measure inter-annotator agreement on your annotations with percent agreement, Krippendorff's alpha, Gwet's AC2 and pairwise F1, and learn how to interpret them. - [Deployment](https://prodi.gy/docs/deployment.md): Deploy Prodigy as a web service for your annotation team: run it on a local machine, a virtual machine or in a Docker container, on-premise or in the cloud. ### API - [Recipes](https://prodi.gy/docs/recipes.md): Reference for all built-in Prodigy recipes for NER, spans, text classification, relations, images, audio, LLMs, training, review and managing datasets. - [Annotation Interfaces](https://prodi.gy/docs/api-interfaces.md): Reference for Prodigy's annotation interfaces and their JSON task formats: text, NER, spans, classification, choice, relations, images, audio, blocks and more. - [Web Application](https://prodi.gy/docs/api-web-app.md): Keyboard shortcuts, settings, UI themes and the REST API of Prodigy's annotation web app, and how to customize its appearance and behavior. - [Loaders & Input Data](https://prodi.gy/docs/api-loaders.md): Input data formats and file loaders for Prodigy: load JSONL, JSON, CSV, text, images and audio, and how annotation tasks are hashed and deduplicated. - [Components & Functions](https://prodi.gy/docs/api-components.md): Reference for Prodigy's Python API: serve recipes from Python, preprocessors, sorters, filters, task routers, PatternMatcher, Controller, Stream and Session. - [Database](https://prodi.gy/docs/api-database.md): Store annotations in SQLite, MySQL or PostgreSQL, import existing annotations and use the Database API to manage datasets and examples from Python. ### Plugins - [Open Source Plugins](https://prodi.gy/docs/plugins.md): Open-source plugins that add recipes to Prodigy for Hugging Face models, PDFs and OCR, Whisper transcription, image segmentation, search and evaluation. - [Single Sign-on (SSO)](https://prodi.gy/docs/sso.md): Set up single sign-on (SSO) for Prodigy with an OpenID Connect provider like Auth0, Okta, Google or Microsoft Entra, available with a company license. - [Modal](https://prodi.gy/docs/modal.md): Run Prodigy in the cloud with the Modal plugin: serve and deploy annotation servers and run training jobs on Modal's serverless platform from Python. - [DSPy](https://prodi.gy/docs/dspy.md): Develop and optimize LLM pipelines with DSPy and Prodigy: collect human feedback in Prodigy's annotation UI and use it to evaluate and optimize your prompts. ## Product - [Pricing & Lifetime Licenses](https://prodi.gy/buy): Buy Prodigy with a one-time lifetime license for individuals or teams, including 12 months of upgrades. Runs on your own machines, with full data privacy. - [Text Annotation for Information Extraction](https://prodi.gy/features/information-extraction): Annotate named entities, spans and relations to extract structured data from text, with patterns, LLMs and models in the loop to make annotation faster. - [Train and Distill Custom Language Models](https://prodi.gy/features/language-model-training): Create training data and distill large language models into smaller, faster and fully private pipelines for your use case that you can run cheaply in-house. - [Image Annotation Tool for Computer Vision](https://prodi.gy/features/computer-vision): Annotate images with bounding boxes, polygons and freehand shapes, and classify and segment images to build custom object detection and computer vision models. - [Audio & Video Annotation Tool](https://prodi.gy/features/audio-video): Annotate audio and video files: label regions and speakers, classify recordings and transcribe speech to build custom AI systems for your multimedia data. - [Prompt Engineering & LLM Evaluation](https://prodi.gy/features/prompt-engineering): Find and evaluate the best LLM prompts for your use case with Prodigy's prompt engineering workflows, and compare prompts on real data in a tournament. - [Custom Annotation Workflows & Interfaces](https://prodi.gy/features/custom-workflows): Script Prodigy with Python to build custom annotation workflows, interfaces and integrations, combining UI blocks with your own HTML, CSS and JavaScript. - [Data Annotation for Banking & Finance](https://prodi.gy/industries/banking-finance): Annotate financial documents, reports and news to build custom NLP for risk assessment, compliance and market analysis, fully private on your own servers. - [Data Annotation for Healthcare & Biomedical NLP](https://prodi.gy/industries/healthcare-biomedical): Annotate clinical and patient notes, medical documents and research papers to build custom biomedical NLP on your own servers, so sensitive data stays private. - [Data Annotation for Media & Content Creation](https://prodi.gy/industries/media-content-creation): Annotate text, images, audio and video from your archives and user-generated content to build custom AI systems that bring structure to your media data. - [Data Annotation for Legal & Insurance Documents](https://prodi.gy/industries/legal-insurance): Annotate contracts, legislation, regulations and other legal documents to build custom NLP for legal and compliance workflows on your own servers. - [Annotation for Conversational AI & Insights](https://prodi.gy/industries/conversation-insights): Annotate dialogs, chat logs and user interactions to build custom intent detection and insight extraction for your conversational applications. - [Annotation Tool for Research & Education](https://prodi.gy/industries/research-education): Use Prodigy in academic research to create high-quality corpora and annotated datasets. Academic researchers can apply for a free research license. ## Case studies - [How S&P Global makes markets more transparent with spaCy and Prodigy in a high-security environment](https://explosion.ai/blog/sp-global-commodities) - [How the Guardian approaches quote extraction from news articles with spaCy and Prodigy](https://explosion.ai/blog/guardian) - [How Nesta processes 7m job ads to shed light on the UK’s labor market with spaCy and Prodigy](https://explosion.ai/blog/nesta-skills) - [How Love Without Sound helps music industry law firms recover millions with spaCy and Prodigy](https://explosion.ai/blog/love-without-sound-nlp-music-industry) - [How Posh deploys a customized Prodigy cloud service to build financial chatbots for banking conversations](https://explosion.ai/blog/posh-prodigy-financial-chatbots) - [How Balo builds legal PII anonymization for courts and law firms with Prodigy and Ellf](https://explosion.ai/blog/balo-pii-anonymization) - [How Popp is saving 76% in token costs for their LLM pipelines with Prodigy, Ellf and Jev](https://explosion.ai/blog/popp-llms-jev) ## Optional - [spaCy](https://spacy.io): Open-source library for industrial-strength NLP, used to train models in Prodigy - [Ellf](https://ellf.ai/llms.txt): Agentic NLP development with coding assistants, including skills for writing Prodigy recipes and running annotation on your own cluster - [Prodigy Support](https://support.prodi.gy): Community forum for questions about Prodigy - [Live demo](https://demo.prodi.gy): Try the annotation interfaces in the browser - [Explosion](https://explosion.ai): The company behind Prodigy, spaCy and Ellf