VectorSimilarity
VectorSimilarity copied to clipboard
Add `Index_UpdateVector` function to the LLAPI
The function will have 3 return values.
-
Old_idandvectormatch. -
Old_idmatches,vectordoes not match. -
Old_iddoes not match regardless of thevectormatch.
The function will be used by RediSearch when a document gets updated in order to avoid deletion and addition of a vector which are costly.
Suggestion for a function signature:
typedef int (*Index_UpdateVector)(VecSimIndex* index, const void* blob, size_t old_id, size_t new_id);