What are the argument of IndexFlatL2.add() ? #3342
Unanswered
vittorio-perera
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the python example code vectors are added to the index using:
index.add(xb)
on the other hand the C++ example uses:
index.add(nb, xb);
Checking the (python) code it looks like the signature for add is
def add(self, n, x)
but no default value is passed. What shouldx
be? Asking as not passingx
works but it will raise a pylint errorBeta Was this translation helpful? Give feedback.
All reactions