Created
April 11, 2018 23:29
-
-
Save Enet4/335957999756a6163b711030e7a2841b to your computer and use it in GitHub Desktop.
ConcurrentIndex in faiss-rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Trait for a Faiss index that can be safely searched over multiple threads. | |
pub trait ConcurrentIndex: Index { | |
fn assign(&self, q: &[f32], k: usize) -> Result<AssignSearchResult>; | |
fn search(&self, q: &[f32], k: usize) -> Result<SearchResult>; | |
fn range_search(&self, q: &[f32], radius: f32) -> Result<RangeSearchResult>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment