-
Notifications
You must be signed in to change notification settings - Fork 20
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 check for number of elements in diskann #104
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: jinjiabao.jjb <[email protected]>
src/index/diskann.cpp
Outdated
CHECK_ARGUMENT(data_num >= 2, | ||
fmt::format("base.num_elements({}) must be greater than 2", data_num)); |
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.
is it related to any bug or issue?
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.
It is not relate any bugs. We have constrained this matter in functests, but we haven't done any checks in the code, which is not acceptable.
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.
should we add some unit tests or func tests to cover this new behavior?
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.
I have added the related unit test.
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.
@inabao I saw that the minimum number of elements is changed to 1. What is the consideration?
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.
>1
== >=2
, so we should keep the minimum number of elements equal to 2 and greater than 1
Signed-off-by: jinjiabao.jjb <[email protected]>
No description provided.