Skip to content

Commit a1ce2f1

Browse files
Add link to quickwit
Co-authored-by: Tamo <[email protected]>
1 parent d6b4803 commit a1ce2f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/reader.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ pub fn item_leaf<'a, D: Distance>(
603603
}
604604
}
605605

606+
// Based on https://quickwit.io/blog/top-k-complexity, implemented in https://github.com/meilisearch/arroy/pull/129
606607
pub fn median_based_top_k<T>(v: Vec<T>, k: usize, mut threshold: T) -> Vec<T>
607608
where
608609
T: Ord + Copy,

0 commit comments

Comments
 (0)