-
Notifications
You must be signed in to change notification settings - Fork 86
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
a theoretical fix for binary data type #676
Conversation
@alexanderguzhva 🔍 Important: PR Classification Needed! For efficient project management and a seamless review process, it's essential to classify your PR correctly. Here's how:
For any PR outside the kind/improvement category, ensure you link to the associated issue using the format: “issue: #”. Thanks for your efforts and contribution to the community!. |
Signed-off-by: Alexandr Guzhva <[email protected]>
ad66e11
to
366d231
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #676 +/- ##
=========================================
+ Coverage 0 71.75% +71.75%
=========================================
Files 0 69 +69
Lines 0 4737 +4737
=========================================
+ Hits 0 3399 +3399
- Misses 0 1338 +1338 |
do we really need to? |
I thought it make much more sense to align with byte. |
Currently milvus has constraints for dim % 8 == 0 on binary vectors, but this change shall not cause any problems |
yes. i'm just wondering what will be use case for that. |
the use case is the aesthetics of a code that handles the situation correctly, even if the situation is improbable :) |
Agree, we could be ready for possible future change(dim % 8 != 0) even if it is unlikely:) , at least the code is correct and more robust
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alexanderguzhva, chasingegg The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/kind improvement |
Signed-off-by: Alexandr Guzhva <[email protected]>
Faiss
IndexBinary
-derived indices prohibitdim % 8 != 0
use cases. Still, it is needed to correctly handle non-standarddim
values inside Knowhere, just in hope that a Faiss might lift its restriction one day./kind improvement