π§ FAISS Flashcards
π What is FAISS?
FAISS (Facebook AI Similarity Search) is a library for efficient similarity search and clustering of dense vectors.
β‘ What is FAISS used for?
FAISS is commonly used in vector search engines, recommendation systems, and LLM-based retrieval pipelines.
π§ What types of indexes does FAISS support?
FAISS supports flat (brute-force), IVF, HNSW, and PQ indexes for approximate nearest neighbor search.
π How do you install FAISS?
You can install FAISS using pip (`pip install faiss-cpu`) or build from source for GPU support.
βοΈ Does FAISS support GPU?
Yes, FAISS has a CUDA version for GPU-accelerated indexing and search, ideal for large datasets.
π‘ Whatβs the advantage of FAISS?
It provides high-speed nearest neighbor search with minimal memory usage, even on millions of vectors.
π Can FAISS be used with LangChain?
Yes. FAISS is one of the supported vector stores in LangChain for Retrieval-Augmented Generation (RAG).
π§ͺ Does FAISS support clustering?
Yes, FAISS supports k-means clustering, making it suitable for embedding analysis and compression.
π§° How does FAISS compare to Pinecone?
FAISS is a self-hosted library, while Pinecone is a managed service. FAISS offers more control but requires setup.
π Can FAISS be used at scale?
Yes, with GPU acceleration and advanced indexing strategies, FAISS can handle billions of vectors efficiently.