diff --git a/argilla-server/src/argilla_server/_version.py b/argilla-server/src/argilla_server/_version.py index f2bedea2c6..0f4e84ce92 100644 --- a/argilla-server/src/argilla_server/_version.py +++ b/argilla-server/src/argilla_server/_version.py @@ -13,4 +13,4 @@ # limitations under the License. # coding: utf-8 -__version__ = "2.0.0-alpha0" +__version__ = "2.0.0-dev" diff --git a/argilla/docs/how_to_guides/record.md b/argilla/docs/how_to_guides/record.md index 32841c0526..f28b4a1bf8 100644 --- a/argilla/docs/how_to_guides/record.md +++ b/argilla/docs/how_to_guides/record.md @@ -453,7 +453,7 @@ dataset.records.log(records=updated_data) ``` === "Update vectors" - When a new vector field is added to the dataset settings, or some value for the existing record vectors must updated, you can iterate over the records and update the vectors in the same way as the metadata. + When a new vector field is added to the dataset settings, or some value for the existing record vectors must updated, you can iterate over the records and update the vectors in the same way as the metadata. ```python updated_records = [] diff --git a/argilla/src/argilla/__init__.py b/argilla/src/argilla/__init__.py index 3faaed0386..7fe8d5b858 100644 --- a/argilla/src/argilla/__init__.py +++ b/argilla/src/argilla/__init__.py @@ -23,4 +23,4 @@ from argilla.vectors import * # noqa -__version__ = "2.0.0-alpha0" +__version__ = "2.0.0-dev" diff --git a/argilla/src/argilla/_models/_record/_record.py b/argilla/src/argilla/_models/_record/_record.py index 0286dc1c12..38a4996c96 100644 --- a/argilla/src/argilla/_models/_record/_record.py +++ b/argilla/src/argilla/_models/_record/_record.py @@ -26,6 +26,7 @@ FieldValue = Union[str, None] + class RecordModel(ResourceModel): """Schema for the records of a `Dataset`""" diff --git a/argilla/src/argilla/records/_dataset_records.py b/argilla/src/argilla/records/_dataset_records.py index a6fc09fcb2..5d2d0f4a0e 100644 --- a/argilla/src/argilla/records/_dataset_records.py +++ b/argilla/src/argilla/records/_dataset_records.py @@ -31,7 +31,6 @@ from argilla.settings._metadata import MetadataPropertyBase from argilla.settings._question import QuestionPropertyBase from argilla.suggestions import Suggestion -from argilla.vectors import Vector if TYPE_CHECKING: from argilla.datasets import Dataset diff --git a/argilla/tests/unit/export/test_record_export_import_compatibillity.py b/argilla/tests/unit/export/test_record_export_import_compatibillity.py index 70f61e50a7..637c874bbd 100644 --- a/argilla/tests/unit/export/test_record_export_import_compatibillity.py +++ b/argilla/tests/unit/export/test_record_export_import_compatibillity.py @@ -23,7 +23,6 @@ @pytest.fixture def record(): - return rg.Record( id=uuid.uuid4(), fields={"text": "Hello World, how are you?"}, @@ -34,7 +33,6 @@ def record(): responses=[rg.Response("label", "positive", user_id=uuid.uuid4())], metadata={"source": "twitter", "language": "en"}, vectors={"text": [0, 0, 0]}, - ) diff --git a/argilla/tests/unit/test_resources/test_records.py b/argilla/tests/unit/test_resources/test_records.py index 6a0ae1e056..09759430c7 100644 --- a/argilla/tests/unit/test_resources/test_records.py +++ b/argilla/tests/unit/test_resources/test_records.py @@ -30,11 +30,11 @@ def test_record_repr(self): responses=[Response(question_name="question", value="answer", user_id=user_id)], ) assert ( - record.__repr__() == f"Record(id={record_id}," - "fields={'name': 'John', 'age': '30'}," - "metadata={'key': 'value'}," - "suggestions={'question': {'value': 'answer', 'score': None, 'agent': None}}," - f"responses={{'question': [{{'value': 'answer'}}]}})" + record.__repr__() == f"Record(id={record_id}," + "fields={'name': 'John', 'age': '30'}," + "metadata={'key': 'value'}," + "suggestions={'question': {'value': 'answer', 'score': None, 'agent': None}}," + f"responses={{'question': [{{'value': 'answer'}}]}})" ) def test_update_record_metadata_by_key(self): @@ -62,4 +62,3 @@ def test_update_record_vectors(self): record.vectors["new-vector"] = [1.0, 2.0, 3.0] assert record.vectors == {"vector": [1.0, 2.0, 3.0], "new-vector": [1.0, 2.0, 3.0]} -