# FAISS

- **Canonical URL:** https://getaimath.com/dictionary/faiss/
- **Topics:** [Context, Memory & Retrieval](https://getaimath.com/dictionary/category/context-memory-and-retrieval/)
- **Last updated:** 2026-11-25

## What is FAISS?

**In one sentence:** FAISS is a free library from Meta for fast similarity search and clustering of vectors.

It includes many indexing methods and can run on CPUs or GPUs. It is a toolkit rather than a full database, so developers often build on top of it.

![Context Window vs. Memory: Your Desk vs. The Filing Cabinet — Simple cartoon comparing the AI Context Window (a small desk that can only fit a few pages right now) with External Memory & Search (a big filing cabinet where a librarian grabs just the 3 pages you need).](https://getaimath.com/diagrams/context-memory-and-retrieval.png)
*Napkin Diagram (Context, Memory & Retrieval): The context window is the small desk the AI can see right now; search grabs the right pages from the filing cabinet.*

## What is an example of FAISS?

A researcher might use FAISS to search 1 billion image embeddings on a GPU.

## Why does FAISS matter?

FAISS is one of the most widely used tools for vector search.

## Related Concepts

- [HNSW](https://getaimath.com/dictionary/hnsw/): HNSW, or Hierarchical Navigable Small World, is a popular ANN method that organizes vectors into layered networks for fast searching.
- [Chroma](https://getaimath.com/dictionary/chroma/): Chroma is a free, open-source vector database designed to be simple to use for AI apps.
- [Approximate Nearest Neighbors (ANN)](https://getaimath.com/dictionary/approximate-nearest-neighbors-ann/): Approximate nearest neighbors finds results that are almost certainly the closest matches, much faster than checking every item.
- [Metadata Filtering](https://getaimath.com/dictionary/metadata-filtering/): Metadata filtering narrows search results using extra information, such as date, author or category, alongside similarity.
- [Euclidean Distance](https://getaimath.com/dictionary/euclidean-distance/): Euclidean distance is the straight-line distance between two points or vectors.
- [Chunking](https://getaimath.com/dictionary/chunking/): Chunking splits long documents into smaller pieces before turning them into embeddings for search.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/faiss/)
