The Argilla Python client library (SDK) facilitates logging, managing, and exploring data for AI feedback, monitoring, and fine-tuning. It provides tools for data annotation, model monitoring, and fine-tuning LLMs with human and AI feedback. It's currently at version 2.8.0 and follows a regular release cadence, often releasing minor versions monthly or bi-monthly.
pip install argillaVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the Argilla client and log `TextRecord` objects to a new or existing dataset. It automatically handles environment variables for connection parameters.
Uninstall `rubrix` (`pip uninstall rubrix`) and install `argilla` (`pip install argilla`). Update all `import rubrix as rb` to `import argilla as rg`.
Review the new `rg.init()` signature in the official documentation. For example, `rg.init('http://localhost:6900', api_key='owner.apikey')` becomes `rg.init(api_url='http://localhost:6900', api_key='argilla.apikey')`.Migrate your record definitions according to the v2.0 data model. Consult the migration guide for specific class and field changes (e.g., `TextClassificationRecord` -> `TextRecord`).
When connecting to Argilla Cloud, ensure you pass the `workspace` argument to `rg.init()` (e.g., `rg.init(..., workspace='your_workspace_name')`) or set the `ARGILLA_WORKSPACE` environment variable.
If you require a specific task type (e.g., 'FeedbackTask') or custom dataset settings, it is best practice to explicitly create the dataset with `rg.FeedbackDataset.from_argilla(...)` (for feedback tasks) or define the settings prior to logging, rather than relying on automatic creation.
Uninstall the old `rubrix` package (`pip uninstall rubrix`) and ensure `argilla` is installed (`pip install argilla`). Update all `import rubrix as rb` statements to `import argilla as rg`.
Verify that your Argilla server is running and accessible. Double-check the `ARGILLA_API_URL` and `ARGILLA_API_KEY` environment variables or the parameters passed to `rg.init()`.
Consult the Argilla documentation for the correct `rg.Record` type and its expected fields for your specific task (e.g., `rg.TextRecord`, `rg.FeedbackRecord`). Ensure that if you're working with Feedback tasks, the dataset settings are correctly defined via `rg.FeedbackDataset.from_argilla` before logging.
Remove the `workspace` argument from `rg.init()` if you are connecting to a local Argilla instance, or ensure your Argilla server version and client version are compatible. If connecting to Argilla Cloud, ensure `workspace` is correctly used and your client version supports it.
No dependency data recorded yet.