-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Error using assign method with IndexBinary in FAISS #3343
Labels
Comments
Right, |
asadoughi
pushed a commit
that referenced
this issue
Apr 24, 2024
Summary: Fixes #3343 Differential Revision: D56526842
asadoughi
pushed a commit
that referenced
this issue
Apr 24, 2024
Summary: Fixes #3343 Reviewed By: kuarora, junjieqi Differential Revision: D56526842
asadoughi
pushed a commit
that referenced
this issue
Apr 24, 2024
Summary: Fixes #3343 Reviewed By: kuarora, junjieqi Differential Revision: D56526842
abhinavdangeti
pushed a commit
to blevesearch/faiss
that referenced
this issue
Jul 12, 2024
Summary: Fixes facebookresearch#3343 Reviewed By: kuarora, junjieqi Differential Revision: D56526842 fbshipit-source-id: b7c4377495db4e68283cf4ce2b7c8fae008cd404
aalekhpatel07
pushed a commit
to aalekhpatel07/faiss
that referenced
this issue
Oct 17, 2024
Summary: Fixes facebookresearch#3343 Reviewed By: kuarora, junjieqi Differential Revision: D56526842 fbshipit-source-id: b7c4377495db4e68283cf4ce2b7c8fae008cd404
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description:
I am encountering an issue when attempting to use the
assign
method on anIndexBinary
object in FAISS. The objective is to assign each input vector to the label of its nearest neighbor within the index. However, when I call theassign
method, I receive aTypeError
indicating a mismatch in the number or type of arguments.Steps to Reproduce:
sentence_transformers.quantization.quantize_embeddings
.IndexBinary
object and set its parameters.assign
method with the quantized vectors and the labels array.Expected Behavior:
The
assign
method should correctly assign each input vector to the label of its nearest neighbor within the index without any errors.Actual Behavior:
When calling the
assign
method, the followingTypeError
is thrown:Environment:
Additional Context:
I am using FAISS for vector similarity search in a binary space. The vectors are first quantized to a binary format before being used with the
IndexBinary
object. Below is a snippet of the code that leads to the error:I have ensured that the quantized vectors are of type
uint8
as required. Any insights into what might be causing this error or how to resolve it would be greatly appreciated.The text was updated successfully, but these errors were encountered: