You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let query_emb:Vec<f32>;let doc_emb:Vec<Vec<f32>>;// contains 3 document embeddings
...let mut lsh = LshMem::new(10,30,512).srp().unwrap();let _x = lsh.store_vecs(&doc_emb[..]);let result = lsh.query_bucket(&query_emb).unwrap();println!("lsh-rs: {:?}", result);
Unfortunately, the result is empty. I'm testing the same query and documents with ngt-rs and I get some results (I'm looking for an alternative to ngt-rs which runs on windows). Is this a problem of using better parameters?
The text was updated successfully, but these errors were encountered:
It seems like it, messing with n_projections and n_hash_tables make it sometimes return results. Do you know of effective heuristics for choosing values for the two? I plan on working with 100-10000 candidate vectors of dimension 512, but was just testing with 3 of them.
Most important is understanding the gap amplification. The latest plot in the notebook. You can choose K and L and thereby tuning the collision probability for a certain similarity value.
P.S. you can play around with the python version of this crate in the notebook:
I'm roughly using the following code:
Unfortunately, the result is empty. I'm testing the same query and documents with ngt-rs and I get some results (I'm looking for an alternative to ngt-rs which runs on windows). Is this a problem of using better parameters?
The text was updated successfully, but these errors were encountered: