To start using Argilla, you will need to set up your own Argilla instance first. Then you will need to install the Python SDK so that you can manage Argilla using Python code.
The easiest way to set up your Argilla instance is through Hugging Face Spaces. To create your Argilla Space, simply follow this form. If you need further guidance, check the Argilla quickstart.
⚠️ You may want to enable Persistent storage so the data isn’t lost if the Space is paused or restarted. You can do that from the Settings of your Space.
Once Argilla is up and running, you can log in with your credentials.
Now you can go to your Python environment or notebook and install the argilla library:
!pip install argilla
Let’s connect with our Argilla instance. To do that you will need the following information:
https://<your-username>.<space-name>.hf.space
.import argilla as rg
HF_TOKEN = "..." # only for private spaces
client = rg.Argilla(
api_url="...",
api_key="...",
headers={"Authorization": f"Bearer {HF_TOKEN}"}, # only for private spaces
)
To check that everything is working properly, we’ll call me
. This should return our user:
client.me
If this worked, your Argilla instance is up and running and you’re connected to it! Congrats!
We can now get started with loading our first dataset to Argilla.
< > Update on GitHub