-
Notifications
You must be signed in to change notification settings - Fork 24
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
add update example #364
base: main
Are you sure you want to change the base?
add update example #364
Conversation
Signed-off-by: Xiangyu Wang <[email protected]>
0dcc7a1
to
d56c126
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅ @@ Coverage Diff @@
## main #364 +/- ##
==========================================
+ Coverage 90.81% 90.92% +0.11%
==========================================
Files 133 133
Lines 8429 8445 +16
==========================================
+ Hits 7655 7679 +24
+ Misses 774 766 -8
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
|
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
->Owner(false); | ||
|
||
// try to update determines by the distance between the new vector and the old vector | ||
if (auto update_vector = index->UpdateVector(update_id, update_dataset, false); |
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.
update_vector -> update_status ?
abort(); | ||
} else if (*update_vector) { /* updated, new vector is near to the old vector */ | ||
std::cout << "updated, new vector is near to the old vector" << std::endl; | ||
} else { /* not update, new vector is far away from the old vector */ |
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.
Q: default is in place update ?
No description provided.