Skip to content

Commit

Permalink
remove unnecessary vector constrution
Browse files Browse the repository at this point in the history
Signed-off-by: BubbleCal <[email protected]>
  • Loading branch information
BubbleCal committed Feb 29, 2024
1 parent 02d4f81 commit aaed485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/lance-index/src/vector/hnsw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ impl HNSW {
ep = greedy_search(level, ep, query)?.1;
}

let candidates = beam_search(&self.levels[0], &vec![ep], query, ef)?;
let candidates = beam_search(&self.levels[0], &[ep], query, ef)?;
Ok(select_neighbors(&candidates, k)
.map(|(d, u)| (u, d.into()))
.collect())
Expand Down

0 comments on commit aaed485

Please sign in to comment.