You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In some cases, the user may want to update the base vector. For example, each base vector corresponds to a face of a person. Implementing this functionality using the existing external interface requires the use of Delete + Insert, which can significantly degrade the recall performance of the original index. However, for vectors that are extremely similar before and after the update, it is straightforward to reuse the connections in the graph before the update.
Describe the solution you'd like
In such cases, VSAG should provide an interface to support in-place updates for IDs and vectors without modifying any connections in the graph index, like: Update(int64_t old_id, int64_t new_id, const DatasetPtr& new_base)
Then, we should add --force argument, if force_update == true, we update the vector without any check. Otherwise, we first search the ANNs / or get the neighbors in graph of the old_id and vector. Then we should check the distance relationship between new_vec and the ANNs and old_vec. If the distance relationship changes, return false.
Last, the conjugate graph should be modified to allow label update.
Is your feature request related to a problem? Please describe.
In some cases, the user may want to update the base vector. For example, each base vector corresponds to a face of a person. Implementing this functionality using the existing external interface requires the use of Delete + Insert, which can significantly degrade the recall performance of the original index. However, for vectors that are extremely similar before and after the update, it is straightforward to reuse the connections in the graph before the update.
Describe the solution you'd like
In such cases, VSAG should provide an interface to support in-place updates for IDs and vectors without modifying any connections in the graph index, like:
Update(int64_t old_id, int64_t new_id, const DatasetPtr& new_base)
Then, we should add --force argument, if force_update == true, we update the vector without any check. Otherwise, we first search the ANNs / or get the neighbors in graph of the old_id and vector. Then we should check the distance relationship between new_vec and the ANNs and old_vec. If the distance relationship changes, return false.
Last, the conjugate graph should be modified to allow label update.
Additional context
#196
#308
The text was updated successfully, but these errors were encountered: