faiss

Enable billion-scale vector similarity search with FAISS index types and GPU acceleration.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/adm-humanerd/drewgent --skill faiss-adm-humanerd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: faiss
Source: https://github.com/adm-humanerd/drewgent/tree/main/optional-skills/mlops/faiss
Command: npx skills add https://github.com/adm-humanerd/drewgent --skill faiss-adm-humanerd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

FAISS enables scalable, high-performance vector similarity search over large embedding collections, enabling fast retrieval of nearest neighbors for billions of vectors.

Core Features & Use Cases

  • Wide index support: Flat, IVF, HNSW, PQ and more for exact or approximate search across large datasets.
  • GPU acceleration: Utilizes GPUs to accelerate large-scale similarity search.
  • Language bindings: C++ and Python bindings with broad ecosystem compatibility (LangChain, LLamaIndex).
  • Use Case: Build scalable recommender or semantic search systems over massive embedding stores.

Quick Start

Install FAISS (cpu or gpu) and run a minimal example that indexes vectors and performs a nearest-neighbor search.

Frequently Asked Questions about faiss

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform fast vector similarity search on billion-scale embedding collections?

Fast vector similarity search on billion-scale embedding collections is enabled by indexing vectors with FAISS, which supports exact or approximate nearest-neighbor retrieval using index types like Flat, IVF, HNSW, and PQ for massive datasets.

Can I use GPU acceleration for large-scale k-NN search?

Yes, GPU acceleration is supported for large-scale k-NN search. FAISS utilizes GPUs to significantly accelerate similarity search and retrieval operations over massive embedding stores.

What is the best way to build a semantic search system over a massive vector store?

Building a scalable semantic search system over massive vector stores is best achieved using FAISS. It provides multiple index types like IVF and HNSW, alongside robust Python and C++ bindings, for fast embedding-based retrieval.

Does FAISS work with LangChain and LlamaIndex for embedding-based analytics?

Yes, FAISS works with LangChain and LlamaIndex. It offers broad ecosystem compatibility through its Python and C++ bindings, enabling integration into production workflows for embedding-based analytics and retrieval.

When should I use approximate search instead of exact search for vector retrieval?

Approximate search should be used instead of exact search when querying billion-scale embedding collections where speed is critical. FAISS index types like IVF, HNSW, and PQ trade slight accuracy for significantly faster large-scale vector retrieval.

How do I get started with indexing vectors and performing a nearest-neighbor search?

To get started with vector indexing and nearest-neighbor search, install the FAISS CPU or GPU package and run a minimal example. This involves creating an index, adding vectors, and querying for nearest neighbors.