From 061df6aaeb3f67a4f1665faa1c3da340f2171651 Mon Sep 17 00:00:00 2001 From: Andy Lee Date: Fri, 7 Feb 2025 10:06:16 +0000 Subject: [PATCH 1/5] fix: add missing `` header file to compile --- include/ann_exception.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/ann_exception.h b/include/ann_exception.h index 6b81373c1..55f069b0e 100644 --- a/include/ann_exception.h +++ b/include/ann_exception.h @@ -6,6 +6,7 @@ #include #include #include "windows_customizations.h" +#include #ifndef _WINDOWS #define __FUNCSIG__ __PRETTY_FUNCTION__ From 67bfa5a16033046b490b34827cd84796f5fdd8eb Mon Sep 17 00:00:00 2001 From: Andy Lee Date: Sat, 8 Feb 2025 10:09:39 +0000 Subject: [PATCH 2/5] chore: add .so to gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index f80e5c682..faf51669b 100644 --- a/.gitignore +++ b/.gitignore @@ -378,3 +378,5 @@ gperftools # Rust rust/target + +python/src/*.so \ No newline at end of file From 934e8ceed339aeea27ed867ae2ae3107c7d7ff7f Mon Sep 17 00:00:00 2001 From: yichuan520030910320 Date: Thu, 20 Feb 2025 06:31:20 +0000 Subject: [PATCH 3/5] yichuan_try --- src/pq_flash_index.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pq_flash_index.cpp b/src/pq_flash_index.cpp index d9ad50617..8da30b61a 100644 --- a/src/pq_flash_index.cpp +++ b/src/pq_flash_index.cpp @@ -1271,7 +1271,8 @@ void PQFlashIndex::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; 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__, From eb8b776450d2dd9ffb46edaa8b219a12d4991db2 Mon Sep 17 00:00:00 2001 From: yichuan520030910320 Date: Thu, 20 Feb 2025 06:37:44 +0000 Subject: [PATCH 4/5] add trash to test --- src/pq_flash_index.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pq_flash_index.cpp b/src/pq_flash_index.cpp index 8da30b61a..47f2cc335 100644 --- a/src/pq_flash_index.cpp +++ b/src/pq_flash_index.cpp @@ -1271,6 +1271,8 @@ void PQFlashIndex::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); From 47f92c9814ba723b781148d648750b0127419eb2 Mon Sep 17 00:00:00 2001 From: yichuan520030910320 Date: Thu, 20 Feb 2025 09:13:19 +0000 Subject: [PATCH 5/5] tag --- src/pq_flash_index.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pq_flash_index.cpp b/src/pq_flash_index.cpp index 47f2cc335..6c004023d 100644 --- a/src/pq_flash_index.cpp +++ b/src/pq_flash_index.cpp @@ -1532,6 +1532,7 @@ void PQFlashIndex::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); } }