Skip to content

Commit 8adef94

Browse files
committed
rebase fixes
1 parent c80f026 commit 8adef94

File tree

3 files changed

+3
-22
lines changed

3 files changed

+3
-22
lines changed

src/VecSim/vec_sim_tiered_index.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -85,25 +85,6 @@ class VecSimTieredIndex : public VecSimIndexInterface {
8585
: this->frontendIndex->preferAdHocSearch(subsetSize, k, initial_check);
8686
}
8787

88-
virtual inline int64_t getAllocationSize() const override {
89-
return this->allocator->getAllocationSize() + this->backendIndex->getAllocationSize() +
90-
this->frontendIndex->getAllocationSize();
91-
}
92-
93-
virtual VecSimIndexInfo info() const override;
94-
virtual VecSimInfoIterator *infoIterator() const override;
95-
96-
VecSimQueryResult_List rangeQuery(const void *queryBlob, double radius,
97-
VecSimQueryParams *queryParams,
98-
VecSimQueryResult_Order order) override;
99-
100-
bool preferAdHocSearch(size_t subsetSize, size_t k, bool initial_check) override {
101-
// For now, decide according to the bigger index.
102-
return this->backendIndex->indexSize() > this->frontendIndex->indexSize()
103-
? this->backendIndex->preferAdHocSearch(subsetSize, k, initial_check)
104-
: this->frontendIndex->preferAdHocSearch(subsetSize, k, initial_check);
105-
}
106-
10788
// Return the current state of the global write mode (async/in-place).
10889
static VecSimWriteMode getWriteMode() { return VecSimIndexInterface::asyncWriteMode; }
10990
#ifdef BUILD_TESTS

src/python_bindings/bindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ class PyTIERED_HNSWIndex : public PyTIEREDIndex {
491491
// Set the created tiered index in the index external context.
492492
this->jobQueueCtx.index_strong_ref = this->index;
493493
}
494-
size_t HNSWLabelCount() { return this->index->info().hnswInfo.indexLabelCount; }
494+
size_t HNSWLabelCount() { return this->index->info().commonInfo.indexLabelCount; }
495495
};
496496

497497
class PyBFIndex : public PyVecSimIndex {

tests/flow/test_bm_hnsw_tiered_dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ def search_insert(is_multi: bool, num_per_label = 1):
355355

356356
def test_main():
357357
print("Test creation")
358-
create_dbpedia()
359-
# create_dbpedia_graph()
358+
#create_dbpedia()
359+
create_dbpedia_graph()
360360
print(f"\nStart insert & search test")
361361
# search_insert(is_multi=False)
362362

0 commit comments

Comments
 (0)