Skip to content

Commit f7fbdfc

Browse files
committed
rebase
2 parents 5ab0758 + a39c5e4 commit f7fbdfc

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

include/svs/extensions/vamana/scalar.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
#pragma once
18+
1719
#include "svs/index/vamana/extensions.h"
1820
#include "svs/quantization/scalar/scalar.h"
1921

include/svs/index/vamana/extensions.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ void check_and_supplement_search_buffer(
436436
) {
437437
if (search_buffer.valid() < search_buffer.target_window() &&
438438
search_buffer.valid() < index.size()) {
439+
search_buffer.sort();
439440
for (auto external_id : index.external_ids()) {
440441
auto internal_id = index.translate_external_id(external_id);
441442
auto dist = index.get_distance(external_id, query);

0 commit comments

Comments
 (0)