faiss

Perform scalable vector similarity search with FAISS index types and CPU/GPU execution.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

FAISS enables developers to perform fast and scalable vector similarity search over very large vector collections, unlocking efficient retrieval for embeddings-based tasks.

Core Features & Use Cases

  • Support for multiple index types (Flat for exact, IVF for fast approximate, HNSW for quality, and PQ for memory efficiency) to fit dataset size and accuracy needs.
  • GPU acceleration and CPU options, with training requirements for certain index types, enabling high-throughput search at scale.
  • Easy integration with Python and common ML tooling, including deployment workflows and retrieval-augmented generation.

Quick Start

Install FAISS (cpu or gpu) and run a minimal example to build an index and perform a 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 over a large collection of embeddings?

Vector similarity search over large collections is enabled by building indexes like Flat, IVF, HNSW, or PQ to fit your dataset size and accuracy needs. This allows fast, scalable retrieval for embeddings-based tasks.

What's the best way to choose an index type for billion-scale vector search?

Choosing an index for billion-scale vector search depends on your priorities: use Flat for exact results, IVF for fast approximate search, HNSW for higher quality, and PQ for memory efficiency.

Can I use GPU acceleration for nearest neighbors search in my machine learning pipeline?

Yes, GPU acceleration is supported alongside CPU options for nearest neighbors search. This enables high-throughput execution at scale within your machine learning pipelines.

Do I need to train my index before running approximate vector similarity search?

Yes, certain index types like IVF and PQ have training requirements before you can add vectors and run approximate vector similarity search. You must train the index on a representative subset of your data first.

How does vector search integrate with retrieval-augmented generation workflows?

Vector search integrates easily with Python and common ML tooling to support deployment workflows and retrieval-augmented generation. It provides the embedding-based retrieval necessary to fetch context for generation tasks.

Why does my approximate nearest neighbors search lack accuracy compared to exact search?

Approximate nearest neighbors search trades exact accuracy for speed and memory efficiency using techniques like IVF and PQ. If accuracy is critical, switching to a Flat index provides exact vector similarity search results.