You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of the recent development of the metadata_properties and metadata_filters in the API, we should ensure that those are covered in the Python client too.
The metadata_properties were already covered at #3818 by @gabrielmbmb, but the metadata_filters were still pending, so this issue is to add those into the filter_by method of RemoteFeedbackDataset datasets i.e. FeedbackDataset datasets pushed to Argilla.
The text was updated successfully, but these errors were encountered:
# Description
This PR adds the `pydantic.BaseModel` schemas for the `MetadataFilters`
i.e. `TermsMetadataFilter`, `IntegerMetadataFilter`, and
`FloatMetadataFilter` and also adds the arg `metadata_filters` to the
`filter_by` method in the `RemoteFeedbackDataset` to be able to filter
based on the pre-defined conditions for those metadata properties
defined in the `FeedbackDataset` in Argilla.
Closes#3835
**Type of change**
- [X] New feature (non-breaking change which adds functionality)
- [X] Improvement (change adding some improvement to an existing
functionality)
**How Has This Been Tested**
- [x] Add unit tests for `TermsMetadataFilter`, `IntegerMetadataFilter`,
and `FloatMetadataFilter`
- [ ] Add integration tests for the `filter_by` method with arg
`metadata_filters` -> On hold because Elastic Search indexing is not
working fine when triggering the tests
- [ ] Add integration tests for the `get_records` function in the SDK
with the arg `metadata_filters` -> On hold because Elastic Search
indexing is not working fine when triggering the tests
**Checklist**
- [ ] I added relevant documentation
- [X] follows the style guidelines of this project
- [X] I did a self-review of my code
- [ ] I made corresponding changes to the documentation
- [X] My changes generate no new warnings
- [X] I have added tests that prove my fix is effective or that my
feature works
- [ ] I filled out [the contributor form](https://tally.so/r/n9XrxK)
(see text above)
- [X] I have added relevant notes to the CHANGELOG.md file (See
https://keepachangelog.com/)
---------
Co-authored-by: Gabriel Martín Blázquez <[email protected]>
Co-authored-by: Francisco Aranda <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Description
As of the recent development of the
metadata_properties
andmetadata_filters
in the API, we should ensure that those are covered in the Python client too.The
metadata_properties
were already covered at #3818 by @gabrielmbmb, but themetadata_filters
were still pending, so this issue is to add those into thefilter_by
method ofRemoteFeedbackDataset
datasets i.e.FeedbackDataset
datasets pushed to Argilla.The text was updated successfully, but these errors were encountered: