faiss

Build fast similarity search over dense vector embeddings with Faiss indices.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/JKhyro/HERMES-AGENT --skill faiss-jkhyro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: faiss
Source: https://github.com/JKhyro/HERMES-AGENT/tree/main/optional-skills/mlops/faiss
Command: npx skills add https://github.com/JKhyro/HERMES-AGENT --skill faiss-jkhyro

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you perform fast similarity search and clustering over dense vector embeddings when exact lookup would be too slow or memory-heavy.

Core Features & Use Cases

  • High-scale vector retrieval: Search millions to billions of embeddings for the nearest neighbors with low latency.
  • Index selection and tuning: Choose between Flat, IVF, HNSW, and PQ indexes based on accuracy, speed, and memory constraints.
  • Practical ML workflows: Use it for semantic search, recommendation retrieval, clustering, and embedding-backed RAG systems.
  • Use Case: A team can index product embeddings, query them with a user search phrase, and return the most similar items in milliseconds.

Quick Start

Use the faiss skill to index your embeddings and return the top nearest neighbors for a query vector.

Frequently Asked Questions about faiss

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

FAQPage Schema
How do I perform fast similarity search over dense vector embeddings at scale?

To build fast similarity search, you index dense vector embeddings using methods like Flat, IVF, HNSW, or PQ. This enables low-latency nearest-neighbor retrieval across millions of vectors on CPU or GPU workflows.

How do I choose between IVF, HNSW, and PQ indices for nearest-neighbor search?

Choosing between IVF, HNSW, Flat, and PQ indices depends on your accuracy, speed, and memory constraints. Index selection and tuning balances these trade-offs for large-scale embedding retrieval and clustering.

Can I use FAISS for semantic search and recommendation retrieval in RAG systems?

Yes, you can use this approach for semantic search, recommendation retrieval, and embedding-backed RAG systems. You index embeddings, query with a vector, and return the most similar items in milliseconds.

What is the best way to normalize vectors for cosine similarity search?

Cosine similarity search requires normalizing your dense vector embeddings before indexing. Applying these normalization requirements during training and indexing ensures accurate similarity measurements.

Does similarity search over millions of vectors require GPU workflows?

Similarity search over millions of vectors supports both CPU and GPU workflows. You can scale your embedding retrieval and clustering across either environment depending on your latency and infrastructure constraints.

When should I not use exact nearest-neighbor lookup for large-scale embeddings?

Avoid exact nearest-neighbor lookup when it becomes too slow or memory-heavy for large-scale embeddings. Approximate methods like IVF, HNSW, and PQ provide faster, more memory-efficient retrieval.