Skip to content

Commit

Permalink
Fix knowhere build (#1027)
Browse files Browse the repository at this point in the history
Signed-off-by: chasingegg <[email protected]>
  • Loading branch information
chasingegg authored Jan 14, 2025
1 parent 2a2f5ef commit 45d757c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index/hnsw/faiss_hnsw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ class BaseFaissRegularIndexHNSWNode : public BaseFaissRegularIndexNode {
auto data = std::make_unique<float[]>(dim * rows);
for (int64_t i = 0; i < rows; i++) {
const int64_t id = ids[i];
assert(id >= 0 && id < index->ntotal);
assert(id >= 0 && id < Count());
if (!get_vector(id, data.get() + i * dim)) {
return expected<DataSetPtr>::Err(Status::invalid_index_error,
"index inner error, cannot proceed with GetVectorByIds");
Expand Down

0 comments on commit 45d757c

Please sign in to comment.