faiss

Perform k-NN similarity search and clustering on dense vectors with FAISS.

2|Updated May 22, 2026
One-click install
npx skills add https://github.com/519lab/thoth-agent --skill faiss-519lab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: faiss
Source: https://github.com/519lab/thoth-agent/tree/main/optional-skills/mlops/faiss
Command: npx skills add https://github.com/519lab/thoth-agent --skill faiss-519lab

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides efficient similarity search and clustering of dense vectors, enabling fast k-NN search, large-scale vector retrieval, and pure similarity search without metadata.

Core Features & Use Cases

  • Fast k-NN Search: Perform rapid nearest neighbor searches on large vector datasets.
  • Large-Scale Vector Retrieval: Retrieve vectors from a database for efficient querying.
  • Pure Similarity Search: Execute similarity searches without metadata filtering.
  • Use Case: Use FAISS to index and search a large dataset of customer queries to quickly find similar queries and improve search relevance.

Quick Start

Use the faiss skill to search for the 5 nearest neighbors of a vector in the 'vectors.dat' file.

Frequently Asked Questions about faiss

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

FAQPage Schema
How do I perform fast k-NN search on large-scale dense vectors?

Fast k-NN search on large-scale dense vectors is achieved by indexing datasets with FAISS, which supports various index types and GPU acceleration for rapid nearest neighbor retrieval. It handles pure similarity search without metadata filtering.

What is the best way to retrieve similar vectors from a massive database?

The best way to retrieve similar vectors from a massive database is using FAISS for efficient similarity search and clustering. It enables large-scale vector retrieval by indexing dense vectors to quickly find matching queries without metadata.

Can I use GPU acceleration for similarity search with numpy arrays?

Yes, you can use GPU acceleration for similarity search with numpy arrays by utilizing the faiss-gpu dependency alongside faiss-cpu and numpy. This enables high-performance vector search tasks on large datasets.

Does FAISS support similarity search with metadata filtering?

FAISS focuses on pure similarity search and does not natively support metadata filtering. It is designed for high-performance k-NN search and clustering of dense vectors, meaning you query vectors directly without metadata constraints.

How do I index and search a large dataset of customer queries to find similar queries?

To index and search a large dataset of customer queries, use FAISS to perform large-scale vector retrieval. It efficiently indexes dense vectors representing the queries, allowing you to rapidly find similar queries and improve search relevance.