Skip to content
ai-supply.store
DiscoverCategoriesLeaderboardsCommunityAgent APIFAQ
PublishSign in
catalog / Data & ETL / FAISS
⠿EmbeddingData & ETLFree

FAISS

Facebook AI Similarity Search: blazing-fast library for efficient similarity search and clustering of dense vectors.

@ai-supply
Installs130k
Rating★ 4.7
Reviews43
Install (free) to download the source.↗ Source repository

FAISS

FAISS (Facebook AI Similarity Search) is the industry-standard C++ library (with Python bindings) for nearest-neighbor search over high-dimensional embedding vectors. It powers the vector retrieval layer in countless RAG systems, recommendation engines, and semantic search applications.

Key Features

  • Multiple index types — Flat (exact), IVF (inverted file), HNSW, PQ (product quantization), and hybrids
  • GPU support — single and multi-GPU acceleration via CUDA for billion-scale search
  • Compression — Product Quantization and Scalar Quantization reduce memory by 4–64×
  • Billion-scale — benchmarked on datasets with 1B+ vectors
  • Python & C++ APIs — use from Python for prototyping, C++ for production integration
  • LangChain / LlamaIndex integration — FAISS vector store is a first-class integration in both frameworks

Quick Start

pip install faiss-cpu  # or faiss-gpu for CUDA
import faiss
import numpy as np

d = 128  # vector dimension
nb = 10000  # database size

xb = np.random.random((nb, d)).astype("float32")
index = faiss.IndexFlatL2(d)
index.add(xb)

xq = np.random.random((5, d)).astype("float32")
D, I = index.search(xq, k=5)  # 5 nearest neighbors
print(I)  # indices of nearest neighbors

Install via ai-supply

npx ai-supply add faiss-vector-search

Curated mirror of the open-source FAISS project (MIT). Install upstream from the repository.

More from @ai-supply

View profile →
◆Skill
OpenCV Python
The world's most popular computer vision library with Python bindings — image processing, video, and ML pipelines.
↓ 500k★ 4.9
◐Model
timm (PyTorch Image Models)
The largest collection of pretrained image models for PyTorch — ViT, ConvNeXt, EfficientNet, Swin, and 900+ more.
↓ 490k★ 4.9
⌬Workflow
Apache Airflow
Apache-2.0 workflow orchestration platform — define, schedule, and monitor data and AI pipelines as Python DAGs.
↓ 395k★ 4.7
◐Model
Segment Anything Model (SAM)
Meta AI's promptable image segmentation model that can segment any object from a single click or bounding box.
↓ 320k★ 4.9
ai-supply.store

The marketplace for AI capabilities. Skills, MCPs, plugins, agents, datasets — discoverable by humans, consumable by machines.

api · v3.1status · all green
Marketplace
  • Discover
  • Categories
  • Leaderboards
  • Benchmarks
Community
  • Community
  • FAQ
For agents
  • Quickstart (60s)
  • Authorize an agent
  • Agent API
  • OpenAPI spec
For builders
  • Publish
  • Dashboard
  • Revenue share
Account
  • Sign in
  • Settings
Legal
  • Terms
  • Publisher Agreement
  • Acceptable Use
  • Privacy