Skip to content
This repository was archived by the owner on Apr 30, 2026. It is now read-only.

Allow FilterByValueBlock to handle one or many values#81

Merged
russellb merged 1 commit into
instructlab:mainfrom
russellb:filterblock-multi-value
Jul 8, 2024
Merged

Allow FilterByValueBlock to handle one or many values#81
russellb merged 1 commit into
instructlab:mainfrom
russellb:filterblock-multi-value

Conversation

@russellb

@russellb russellb commented Jul 4, 2024

Copy link
Copy Markdown
Contributor

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

commit 6c1f3eee12d47bf4be7fa23282732d3c8a143028
Author: Russell Bryant rbryant@redhat.com
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 <rbryant@redhat.com>

@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
Comment thread src/instructlab/sdg/filterblock.py Outdated
@markmc

markmc commented Jul 4, 2024

Copy link
Copy Markdown
Contributor

Great. Nice and simple, no confusion. lgtm

@mergify mergify Bot added the needs-rebase label Jul 6, 2024
@mergify

mergify Bot commented Jul 6, 2024

Copy link
Copy Markdown
Contributor

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 <rbryant@redhat.com>
@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

russellb commented Jul 7, 2024

Copy link
Copy Markdown
Contributor Author

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

@markmc

markmc commented Jul 8, 2024

Copy link
Copy Markdown
Contributor

lgtm 👍

@russellb

russellb commented Jul 8, 2024

Copy link
Copy Markdown
Contributor Author

lgtm 👍

thanks for the review!

@russellb
russellb merged commit 17148cd into instructlab:main Jul 8, 2024
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

testing Relates to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants