Skip to content

Commit

Permalink
Update src/reader.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Clément Renault <[email protected]>
  • Loading branch information
irevoire and Kerollmops authored Sep 26, 2024
1 parent aa31841 commit 80206c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ impl<'t, D: Distance> Reader<'t, D> {
}

/// Return a [`QueryBuilder`] that lets you configure and execute a search request.
///
/// You must provide the number of items you want to receive.
pub fn nns(&self, count: usize) -> QueryBuilder<D> {
QueryBuilder { reader: self, count, search_k: None, oversampling: None, candidates: None }
Expand Down

0 comments on commit 80206c1

Please sign in to comment.