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

Add weight mask that are applied to scores during retrieval #50

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

xhluca
Copy link
Owner

@xhluca xhluca commented Sep 3, 2024

This PR should close #35, as the new weight_mask allows the use of binary masks (see new tests) as well as any floating point mask, making it a general purpose weighting mechanism for post-scoring but before top-k candidate selection. At the moment only a single mask (of shape (D,) for D documents) is accepted, mainly due to infeasibility of having a (Q,D) mask when D is large. Future PRs can add support for 2-D masks.

@xhluca xhluca changed the title Add weight mask Add weight mask that are applied to scores during retrieval Sep 3, 2024
@xhluca
Copy link
Owner Author

xhluca commented Sep 3, 2024

@dl423 FYI

@xhluca xhluca merged commit 8b36bdd into main Sep 3, 2024
2 checks passed
@xhluca xhluca deleted the add-masking branch September 3, 2024 22:16
@dl423
Copy link

dl423 commented Sep 22, 2024

@xhluca Thank you! Really appreciate that you implemented this feature, sorry I didn't get around to implementing this.

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.

[Feature request] Document metadata and filtering
2 participants