Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -378,3 +378,5 @@ gperftools

# Rust
rust/target

python/src/*.so
1 change: 1 addition & 0 deletions include/ann_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <stdexcept>
#include <system_error>
#include "windows_customizations.h"
#include <cstdint>

#ifndef _WINDOWS
#define __FUNCSIG__ __PRETTY_FUNCTION__
Expand Down
6 changes: 5 additions & 1 deletion src/pq_flash_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,10 @@ void PQFlashIndex<T, LabelT>::cached_beam_search(const T *query1, const uint64_t
const uint32_t io_limit, const bool use_reorder_data,
QueryStats *stats)
{

// printf("cached_beam_search\n");
// diskann::cout << "cached_beam_search" << std::endl;
// printf("cached_beam_search\n");
// diskann::cout << "cached_beam_search" << std::endl;
uint64_t num_sector_per_nodes = DIV_ROUND_UP(_max_node_len, defaults::SECTOR_LEN);
if (beam_width > num_sector_per_nodes * defaults::MAX_N_SECTOR_READS)
throw ANNException("Beamwidth can not be higher than defaults::MAX_N_SECTOR_READS", -1, __FUNCSIG__, __FILE__,
Expand Down Expand Up @@ -1529,6 +1532,7 @@ void PQFlashIndex<T, LabelT>::cached_beam_search(const T *query1, const uint64_t
cmps++;
float dist = dist_scratch[m];
Neighbor nn(id, dist);
// expand the neighbor here
retset.insert(nn);
}
}
Expand Down