How argilla-io/argilla works
Argilla is a collaborative platform for building and improving AI datasets. The main workflow is to configure a dataset, then let domain experts review and annotate records using filtering and feedback tools; teams can also manage progress and export or use datasets through the SDK. The repository includes a browser application, an API server, and both current and legacy Python clients. Some feature-level frontend and server implementations were not sampled, so their internal call paths are not asserted.
Main entry points: container Record annotation · routes.py REST API routing · v1 API handlers · client.py Python SDK
Components 24
Browser application
- Dataset setup
argilla-frontend/components/features/dataset-creation/configuration - Dataset discovery
argilla-frontend/components/features/home - Record annotation
argilla-frontend/components/features/annotation/container - Record fields
argilla-frontend/components/features/annotation/container/fields - Feedback questions
argilla-frontend/components/features/annotation/container/questions - Search and filters
argilla-frontend/components/features/annotation/header - Semantic similarity
argilla-frontend/components/features/annotation/container/similarity - Team progress
argilla-frontend/components/features/annotation/progress - Dataset settings
argilla-frontend/components/features/annotation/settings - Page coordination
argilla-frontend/pages - OAuth login
argilla-frontend/pages/oauth/_provider/useOAuthViewModel.ts
API server
- REST API routing
argilla-server/src/argilla_server/api/routes.py - API handlers
argilla-server/src/argilla_server/api/handlers/v1 - API error handling
argilla-server/src/argilla_server/api/errors/v1/exception_handlers.py - Dataset data model
argilla-server/src/argilla_server/models/database.py - Webhook jobs
argilla-server/src/argilla_server/jobs/webhook_jobs.py
Python clients
- Python SDK
argilla/src/argilla/client.py - SDK API resources
argilla/src/argilla/_api - Webhook support
argilla/src/argilla/_api/_webhooks.py - Legacy Python client
argilla-v1/src/argilla_v1/client/client.py - Legacy HTTP transport
argilla-v1/src/argilla_v1/client/sdk/client.py - Command line
argilla-v1/src/argilla_v1/cli/app.py
Other components
- Domain expert
- AI engineer
Connections 22
- AI engineer → Dataset setup: configures dataset
- Domain expert → Record annotation: labels records
- Search and filters → Record annotation: narrows records
- Semantic similarity → Record annotation: finds similar
- Page coordination → Dataset setup: presents setup
- Page coordination → Dataset discovery: presents datasets
argilla-frontend/pages/index.vue - Record annotation → Record fields: renders fields
- Record annotation → Feedback questions: collects answers
- Record annotation → Search and filters: uses filters
- Record annotation → Semantic similarity: uses similarity
- AI engineer → Python SDK: uses client
- Python SDK → SDK API resources: accesses resources
argilla/src/argilla/client.py - SDK API resources → Webhook support: exposes webhooks
argilla/src/argilla/_api/_client.py - Python SDK → REST API routing: sends API requests
- Legacy Python client → Legacy HTTP transport: uses transport
argilla-v1/src/argilla_v1/client/client.py - Legacy Python client → REST API routing: sends API requests
- Command line → Legacy Python client: offers client commands
- REST API routing → API handlers: registers routers
argilla-server/src/argilla_server/api/routes.py - REST API routing → API error handling: configures errors
argilla-server/src/argilla_server/api/routes.py - API handlers → Dataset data model: uses data models
- API handlers → Webhook jobs: dispatches jobs
- Domain expert → OAuth login: signs in