-
Notifications
You must be signed in to change notification settings - Fork 35
Initial implementation of SVS Runtime package #208
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
base: main
Are you sure you want to change the base?
Conversation
…allow non-LTO linking
…el/ScalableVectorSearch into rfsaliev/cpp-runtime-binding
bindings/cpp/include/vamana_index.h
Outdated
| }; | ||
|
|
||
| // TODO: | ||
| // 1. Should StorageKind, metric, be a part of BuildParams? |
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.
StorageKind and metric should not be part of BuildParams. We use DataType and QueryType in SVS for storage kinds. If it's possible we can stick to those.
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.
Made StorageKind globally defined by moving svs::runtime namespace in IndexSVSImplDefs.h.
bindings/cpp/include/vamana_index.h
Outdated
| }; | ||
|
|
||
| struct SearchParams { | ||
| size_t search_window_size = 0; |
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.
We should add the two prefetching parameters here. Even if those will be kept to default values in general, it'd be good to have them here.
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.
Done.
I think this produces more readable code. And since `runtime_error_wrapper()` is an internal function, there shouldn't be any disadvantages for the shared lib.
No description provided.