Skip to content

Library for fast k-NN vector search across Flat, IVF, HNSW, and PQ indexes with optional GPU acceleration.

CCM score
55 of 100
skills.sh installs
1.2K
GitHub stars
14.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers exact and approximate similarity search over dense vectors, scaling from thousands to billions of entries
  • Includes index types IndexFlatL2, IndexIVFFlat, IndexHNSWFlat, and IndexPQ, plus save and load via write_index and read_index
  • Provides single-GPU and multi-GPU acceleration through index_cpu_to_gpu and index_cpu_to_all_gpus, and tuning knobs such as nprobe
  • Designed for high-throughput, pure vector retrieval without metadata filtering, with LangChain and LlamaIndex integrations

Install

$ npx -y skills add orchestra-research/ai-research-skills --skill faiss -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

FAISS - Efficient Similarity Search

Facebook AI's library for billion-scale vector similarity search.

When to use FAISS

Use FAISS when:

  • Need fast similarity search on large vector datasets (millions/billions)
  • GPU acceleration required
  • Pure vector similarity (no metadata filtering needed)
  • High throughput, low latency critical
  • Offline/batch processing of embeddings

Metrics:

  • 31,700+ GitHub stars
  • Meta/Facebook AI Research
  • Handles billions of vectors
  • C++ with Python bindings

Use alternatives instead:

  • Chroma/Pinecone: Need metadata filtering
  • Weaviate: Need full database features
  • Annoy: Simpler, fewer features

Quick start

Installation

# CPU only
pip install faiss-cpu

# GPU support
pip install faiss-gpu

Basic usage

import faiss
import numpy as np

# Create sample data (1000 vectors, 128 dimensions)
d = 128
nb = 1000
vectors = np.random.random((nb, d)).astype('float32')

# Create index
index = faiss.IndexFlatL2(d)  # L2 distance
index.add(vectors)             # Add vectors

Details

Repository
github.com/orchestra-research/ai-research-skills
Categories
AI Agents & LLM Apps, Data Science & Analytics, Databases
First seen
Jun 3, 2026

Questions

What does the faiss skill help an agent do?

The faiss skill covers Facebook's library for efficient similarity search and clustering of dense vectors. It supports billions of vectors, GPU acceleration, and index types such as Flat, IVF, and HNSW for fast k-NN search.

How do I install the faiss skill?

Run npx -y skills add orchestra-research/ai-research-skills --skill faiss -y in a project. Once installed, the agent can build and query FAISS indexes for large-scale vector retrieval.

Where does faiss stand in the AI Agents & LLM Apps category?

The faiss skill is listed in the AI Agents & LLM Apps category on Claude Marketplaces, alongside microsoft-foundry, azure-ai, and several Google agents CLI skills. It stands out for pure similarity search without metadata filtering, which suits high-performance applications.

Does faiss need any extra packages?

The skill depends on faiss-cpu or faiss-gpu, plus numpy. GPU acceleration requires the faiss-gpu package.

More from orchestra-research/ai-research-skills

All 92