Skip to content

Commit

Permalink
feat: comment extra_metadata_allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmbmb committed Sep 26, 2023
1 parent 01de6d9 commit 44f2150
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/argilla/client/feedback/dataset/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def __init__(
questions: List["AllowedQuestionTypes"],
metadata_properties: Optional[List["AllowedMetadataPropertyTypes"]] = None,
guidelines: Optional[str] = None,
extra_metadata_allowed: bool = True,
# TODO: uncomment when supported in the API
# extra_metadata_allowed: bool = True,
) -> None:
"""Initializes a `FeedbackDataset` instance locally.
Expand All @@ -45,9 +46,6 @@ def __init__(
metadata_properties: contains the metadata properties that will be indexed
and could be used to filter the dataset. Defaults to `None`.
guidelines: contains the guidelines for annotating the dataset. Defaults to `None`.
extra_metadata_allowed: whether to allow to include metadata properties that
have not been defined in the `metadata` argument, and thus will not be
indexed. Defaults to `True`.
Raises:
TypeError: if `fields` is not a list of `FieldSchema`.
Expand Down Expand Up @@ -116,7 +114,8 @@ def __init__(
questions=questions,
metadata_properties=metadata_properties,
guidelines=guidelines,
extra_metadata_allowed=extra_metadata_allowed,
# TODO: uncomment when supported in the API
# extra_metadata_allowed=extra_metadata_allowed,
)

self._records = []
Expand Down

0 comments on commit 44f2150

Please sign in to comment.