We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5ab0758 + a39c5e4 commit f7fbdfcCopy full SHA for f7fbdfc
include/svs/extensions/vamana/scalar.h
@@ -13,7 +13,9 @@
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
+
17
#pragma once
18
19
#include "svs/index/vamana/extensions.h"
20
#include "svs/quantization/scalar/scalar.h"
21
include/svs/index/vamana/extensions.h
@@ -436,6 +436,7 @@ void check_and_supplement_search_buffer(
436
) {
437
if (search_buffer.valid() < search_buffer.target_window() &&
438
search_buffer.valid() < index.size()) {
439
+ search_buffer.sort();
440
for (auto external_id : index.external_ids()) {
441
auto internal_id = index.translate_external_id(external_id);
442
auto dist = index.get_distance(external_id, query);
0 commit comments