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

Allow FilterByValueBlock to handle one or many values #81

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

russellb
Copy link
Member

@russellb russellb commented Jul 4, 2024

97d3fcd filterblock: Don't break when filtering on unexpected data

commit 6c1f3eee12d47bf4be7fa23282732d3c8a143028
Author: Russell Bryant [email protected]
Date: Wed Jul 3 21:28:56 2024 -0400

Allow FilterByValueBlock to handle one or many values

This block previously only accepted a single value to filter on. This
update makes it handle a list, as well. In that case, it will ensure
that the filter matches one of the values in the list.

Signed-off-by: Russell Bryant <[email protected]>

@mergify mergify bot added the testing Relates to testing label Jul 4, 2024
@russellb russellb requested a review from shivchander July 4, 2024 01:33
@markmc
Copy link
Contributor

markmc commented Jul 4, 2024

Great. Nice and simple, no confusion. lgtm

@mergify mergify bot added the needs-rebase label Jul 6, 2024
Copy link
Contributor

mergify bot commented Jul 6, 2024

This pull request has merge conflicts that must be resolved before it can be
merged. @russellb please rebase it. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

This block previously only accepted a single value to filter on. This
update makes it handle a list, as well. In that case, it will ensure
that the filter matches one of the values in the list.

This is an updated implementation of the feature originally proposed
in instructlab#72.

Signed-off-by: Russell Bryant <[email protected]>
@russellb russellb force-pushed the filterblock-multi-value branch from 6c1f3ee to 3e21ca8 Compare July 7, 2024 01:46
@russellb russellb marked this pull request as ready for review July 7, 2024 01:46
@mergify mergify bot removed the needs-rebase label Jul 7, 2024
@russellb
Copy link
Member Author

russellb commented Jul 7, 2024

I rebased this and marked it ready for review now that the pre-req PR merged.

@markmc
Copy link
Contributor

markmc commented Jul 8, 2024

lgtm 👍

@russellb
Copy link
Member Author

russellb commented Jul 8, 2024

lgtm 👍

thanks for the review!

@russellb russellb merged commit 17148cd into instructlab:main Jul 8, 2024
11 checks passed
jwm4 pushed a commit to jwm4/sdg that referenced this pull request Dec 13, 2024
Design for serving models with different backends
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Relates to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants