v2.1.0
版本发布时间: 2024-09-05 23:11:08
argilla-io/argilla最新发布版本:v2.1.0(2024-09-05 23:11:08)
🌟 Release highlights
Image Field
Argilla now supports multimodal datasets with the introduction of a native ImageField
. This new type of field allows you to work seamlessly with image data, making it easier to annotate and curate datasets that combine text and images.
Here's an example of a dataset with an image field:
import argilla as rg
client = rg.Argilla(...)
settings = rg.Settings(
fields = [
rg.ImageField(name="image"),
rg.TextField(name="caption")
],
questions = [
rg.LabelQuestion(
name="good_or_bad",
title="Is the caption good or bad",
labels=["good", "bad"]
),
rg.TextQuestion(name="comments")
]
)
dataset = rg.Dataset(name="image_captions", settings=settings)
dataset.create()
record = rg.Record(
fields= {
"image": "https://docs.argilla.io/dev/assets/logo.svg",
"caption": "This is the Argilla logo"
}
)
dataset.records.log([record])
Dark Mode
Argilla seems too bright for you? You can now try our new Dark Mode: a theme designed to reduce eye strain and give a new modern look to the app. You can enable Dark Mode under "My Settings".
Spanish Translation
We're committed to making Argilla accessible to a broader audience. With the addition of Spanish translation, we're taking another step towards breaking language barriers and enabling more teams to collaborate on data curation projects. There's nothing you need to do to enable it: Argilla will automatically switch to Spanish when your browser's main language is set to Spanish. ¡Disfrutadla!
Import any dataset from the Hugging Face Hub
The from_hub
method just got a major boost! You can now input your own settings, allowing you to use this method with almost any dataset from the Hugging Face Hub, not just Argilla datasets.
Here's how easy it is to import a dataset from the Hub:
import argilla as rg
client = rg.Argilla(...)
settings = rg.Settings(
fields=[
rg.TextField(name="input"),
],
questions=[
rg.TextQuestion(name="output"),
],
)
dataset = rg.Dataset.from_hub(
repo_id="yahma/alpaca-cleaned",
settings=settings,
)
Other Notable Fixes and Improvements
- Adaptable text areas for
TextQuestion
's, providing a better user experience in the UI. - Enhanced messaging for empty queues, keeping you informed when no records are available in the UI.
Full Changelog: https://github.com/argilla-io/argilla/compare/v2.0.1...v2.1.0