Choosing Indexes for Similarity Search (Faiss in Python)

  Рет қаралды 22,606

James Briggs

James Briggs

Күн бұрын

Пікірлер
@narayansharma8797
@narayansharma8797 3 жыл бұрын
Thanks a bunch for this, James! Would be really great to see a couple of them get explored in depth. Also, if you could benchmark FAISS against ScaNN, it will help a few of us noobs a hell lot. Great content! Lovely command over your content. Really need more of this.
@jamesbriggs
@jamesbriggs 3 жыл бұрын
Hey Narayan, there is a video released already covering the 'traditional' version of LSH, and two more videos that will be released at 1200 ET today on the random projection version of LSH (used in Faiss) - and there are plenty more of these on the way ;) I love the FAISS vs ScaNN idea too, will be working on it soon!
@narayansharma8797
@narayansharma8797 3 жыл бұрын
@@jamesbriggs Sold!
@Nick-vs1zp
@Nick-vs1zp 2 жыл бұрын
Great explanations, especially for IVF - it's probably the best explanation for how it works that I've seen.
@jamesbriggs
@jamesbriggs 2 жыл бұрын
thanks Nick!
@harshitjaitly6850
@harshitjaitly6850 3 жыл бұрын
Super Informative Content! Thank you so much for this.
@mohammadyahya78
@mohammadyahya78 Жыл бұрын
Does the IVF algorithm works with high dimensional data please like 100?
@katehan9623
@katehan9623 3 жыл бұрын
Thank you for your video. Most Valuable Channel. Do you use GPU for indexing in this projects?
@ChrisZuo
@ChrisZuo 6 ай бұрын
Thank you! The drawings are cute!
@grayrigel7091
@grayrigel7091 2 жыл бұрын
Hi James. Thanks for such a wonderful tutorial. Really useful. A quick question, For a new query vector, is it possible to return the IVF cell/partition that it belongs to, instead of returning the neighbors? I think I can measure the distances with centroids and return the closest centroid. However, I was thinking if there is built-in way.
@caiolp4
@caiolp4 Ай бұрын
I have the exactly same problem. How did you solve it?
@nareshsandrugu6057
@nareshsandrugu6057 2 жыл бұрын
Can share the video assume I have binary data of train and test, so need to calculate the haming distance, I didn't found any videos using faiss ,if share the video that may more helpful
@haneulkim4902
@haneulkim4902 Жыл бұрын
Thanks for amazing video! Do you know why simple K-means are not used for these MIPS problems?
@mohammadyahya78
@mohammadyahya78 Жыл бұрын
what is nbits please at 10:21?
@basedscienxe6632
@basedscienxe6632 2 ай бұрын
This is the amount of bits for the precision of each component in the vector I believe
@viorelteodorescu
@viorelteodorescu Жыл бұрын
What does IP stand for?
@itheenigma
@itheenigma 3 жыл бұрын
Super useful! Thanks for this video James. For IVF, can we retrieve the clusters that each datapoint belongs to after training (also cluster centroids)?
@jamesbriggs
@jamesbriggs 3 жыл бұрын
Yes you can, there is info on it here gist.github.com/mdouze/904e0b538ef7767c9e83a45ac1b57d1b The code you need to write (after training and adding your data to 'index') is: invlists = index.invlists all_ids = [] for l in range(ind.nlist): ls = invlists.list_size(l) if ls == 0: continue all_ids.append( faiss.rev_swig_ptr(invlists.get_ids(l), ls).copy() )
@itheenigma
@itheenigma 3 жыл бұрын
@@jamesbriggs legend. Will give it go. Ta!
3 Vector-based Methods for Similarity Search (TF-IDF, BM25, SBERT)
29:24
ССЫЛКА НА ИГРУ В КОММЕНТАХ #shorts
0:36
Паша Осадчий
Рет қаралды 8 МЛН
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
Faiss - Introduction to Similarity Search
31:37
James Briggs
Рет қаралды 62 М.
Index 2024 Talk: Vector Search and the FAISS Library
30:56
Rockset
Рет қаралды 1,3 М.
Product Quantization for Vector Similarity Search (+ Python)
29:37
James Briggs
Рет қаралды 11 М.
I Made a FAST Search Engine
8:17
conaticus
Рет қаралды 161 М.
Residual Vector Quantization for Audio and Speech Embeddings
13:53
Efficient NLP
Рет қаралды 4 М.
FAISS Vector Library with LangChain and OpenAI (Semantic Search)
20:00
Ryan & Matt Data Science
Рет қаралды 18 М.
Attention in transformers, visually explained | DL6
26:10
3Blue1Brown
Рет қаралды 2 МЛН
Jeff Dean: AI will Reshape Chip Design - NeurIPS 2024
43:53
GradientSpills
Рет қаралды 3,2 М.