Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENHANCEMENT] argilla-server: add search support for custom fields #5461

Conversation

frascuchon
Copy link
Member

@frascuchon frascuchon commented Sep 4, 2024

Description

Important

This PR includes some cherry-pick commits from develop. All branches should be UPDATED before approving and merging this PR.

This PR adds support to apply a basic search on custom field values. Inner fields cannot be queried ( for a record.custom.value the search does not support things like custom.value: some value

Type of change

  • Improvement (change adding some improvement to an existing functionality)
  • Documentation update

How Has This Been Tested

Checklist

  • I added relevant documentation
  • I followed the style guidelines of this project
  • I did a self-review of my code
  • I made corresponding changes to the documentation
  • I confirm My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/)

frascuchon and others added 2 commits September 4, 2024 18:32
…y dsl (#5222)

# Description
<!-- Please include a summary of the changes and the related issue.
Please also include relevant motivation and context. List any
dependencies that are required for this change. -->

This PR adds a tiny dsl to improve text queries based on [this
query](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html#simple-query-string-syntax)

**Type of change**
<!-- Please delete options that are not relevant. Remember to title the
PR according to the type of change -->

- Improvement (change adding some improvement to an existing
functionality)
- Documentation update

**How Has This Been Tested**
<!-- Please add some reference about how your feature has been tested.
-->

**Checklist**
<!-- Please go over the list and make sure you've taken everything into
account -->

- I added relevant documentation
- I followed the style guidelines of this project
- I did a self-review of my code
- I made corresponding changes to the documentation
- I confirm My changes generate no new warnings
- I have added tests that prove my fix is effective or that my feature
works
- I have added relevant notes to the CHANGELOG.md file (See
https://keepachangelog.com/)

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Damián Pumar <[email protected]>
Copy link

codecov bot commented Sep 4, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 91.16%. Comparing base (99533f6) to head (85d3aab).
Report is 1 commits behind head on feat/custom-field-support.

Files with missing lines Patch % Lines
...server/src/argilla_server/search_engine/commons.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@                    Coverage Diff                     @@
##           feat/custom-field-support    #5461   +/-   ##
==========================================================
  Coverage                      91.16%   91.16%           
==========================================================
  Files                            145      145           
  Lines                           5988     5990    +2     
==========================================================
+ Hits                            5459     5461    +2     
  Misses                           529      529           
Flag Coverage Δ
argilla-server 91.16% <83.33%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Sep 4, 2024

The URL of the deployed environment for this PR is https://argilla-quickstart-pr-5461-ki24f765kq-no.a.run.app

@burtenshaw burtenshaw self-requested a review September 23, 2024 09:24
@frascuchon frascuchon changed the title [DRAFT] [ENHANCEMENT] argilla server: add search support for custom fields [ENHANCEMENT] argilla server: add search support for custom fields Sep 23, 2024
@frascuchon frascuchon changed the title [ENHANCEMENT] argilla server: add search support for custom fields [ENHANCEMENT] argilla-server: add search support for custom fields Sep 23, 2024
@frascuchon frascuchon merged commit 7703b1d into feat/custom-field-support Sep 23, 2024
5 of 6 checks passed
@frascuchon frascuchon deleted the feat/argilla-server/add-search-support-for-custom-fields branch September 23, 2024 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants