faiss

Index and search dense vectors with FAISS on CPU or GPU backends.

1|1|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/BermudaLocals/hermes-agent-lite --skill faiss-bermudalocals
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: faiss
Source: https://github.com/BermudaLocals/hermes-agent-lite/tree/main/optional-skills/mlops/faiss
Command: npx skills add https://github.com/BermudaLocals/hermes-agent-lite --skill faiss-bermudalocals

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires faiss-cpu, faiss-gpu, numpy, and includes references (resource) components.

What problem does it solve?

FAISS provides fast, scalable vector similarity search and clustering for large-scale embeddings, including billions of vectors, with GPU acceleration.

Core Features & Use Cases

  • High-performance, scalable vector search across CPU and GPU backends.
  • Supports multiple index types (Flat, IVF, HNSW, PQ) for exact and approximate search.
  • Ideal for large-scale retrieval, recommender systems, and NLP embeddings pipelines.

Quick Start

Install FAISS CPU or GPU packages and run a basic vector search demo with sample data.

Frequently Asked Questions about faiss

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

FAQPage Schema
How do I perform large-scale vector similarity search on dense vectors?

To perform large-scale vector similarity search, use FAISS to index and query billions of dense vectors efficiently. It supports multiple index types including Flat, IVF, HNSW, and PQ for both exact and approximate k-NN retrieval.

Does FAISS support GPU acceleration for k-NN search?

Yes, FAISS supports GPU acceleration for k-NN search by utilizing the faiss-gpu backend. This allows you to index and search billions of dense vectors with ultra-fast performance, which is ideal for large-scale retrieval and NLP embeddings pipelines.

What is the best way to cluster NLP embeddings for a recommendation pipeline?

The best way to cluster NLP embeddings for a recommendation pipeline is using FAISS to efficiently group large-scale dense vectors. It provides scalable clustering and high-performance retrieval capabilities across CPU and GPU backends for billions of vectors.

Can I use FAISS for exact and approximate similarity search?

Yes, you can use FAISS for both exact and approximate similarity search. It supports multiple index types, including Flat for exact search and IVF, HNSW, and PQ for approximate search, allowing you to balance speed and accuracy for billions of dense vectors.

Do I need numpy arrays to run a vector search demo locally?

Yes, you need compatible numpy arrays as your input data to run a vector search demo locally. FAISS relies on numpy for data handling and requires installing faiss-cpu or faiss-gpu packages along with a demonstration dataset to execute queries.

When should I not use approximate vector search for large-scale retrieval?

You should not use approximate vector search for large-scale retrieval when exact matching is strictly required, as methods like IVF, HNSW, and PQ prioritize speed over perfect accuracy. Use the Flat index type instead for exact k-NN search results.