AI GLOSSARY · LOCAL AND OPEN MODELS

FAISS

Markdown version · Wikidata Q113481551

Definition

FAISS (Facebook AI Similarity Search) is an open-source library, developed mainly at Meta, for searching, clustering and compressing dense vectors, which are long lists of numbers that stand for text, images or other data.

Also called: Faiss library, Facebook AI Similarity Search, faiss index, faiss python, faiss vector search.

In plain language

FAISS is a toolbox for finding things that are alike. If a program turns thousands of paragraphs into lists of numbers (called vectors), FAISS can take the numbers for a new question and quickly return the paragraphs whose numbers are closest. Think of a librarian who shelves books by theme and can walk straight to the right shelf. It is a library that a programmer calls from code, not a ready-made search website, so you still build the storage, updates and permissions around it. Faster, approximate search can miss some true best matches, and compressing vectors lowers precision, so the settings need testing on your own data.

Technical definition

Faiss is a C++ library with Python wrappers that provides indexing methods and related primitives to search, cluster, compress and transform vectors. Its README says it compares vectors by L2 distance or dot product, with cosine similarity available by normalising vectors. An index can store raw vectors, as in a flat index, or compressed codes that lower precision in exchange for scale, and some methods, such as HNSW and NSG, add a graph structure on top of the vectors. The README says some algorithms run on GPUs through CUDA or ROCm. The Faiss paper (arXiv 2401.08281, first submitted January 2024) describes the library's design and the trade-offs of vector search.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Guide · Illustrative, not executed

    What Is RAG? Retrieval-Augmented Generation Explained

    What you see
    The guide explains the indexing and query phases of retrieval-augmented generation, in which stored passages are found by similarity to the question.
    Why it exercises the concept
    The retrieval step of a RAG system is the job a vector index such as FAISS performs. The guide shows where that step sits and where it fails.
  2. Skill by Skill Almanac · Illustrative, not executed

    rag-chunking-planner 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    Your documents split by three chunking strategies, with defects and offline recall reported for each, so chunk settings are chosen with numbers.
    Why it exercises the concept
    What goes into a vector index is decided by chunking. This skill measures that choice before you load anything into an index. It does not build a FAISS index itself.
  3. Skill by Skill Almanac · Illustrative, not executed

    library-docs-lookup 52/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    An answer to a library question drawn from the installed package's own files, with file and line cited.
    Why it exercises the concept
    FAISS is a library with its own docs and wrappers. When an agent writes FAISS code, this skill steers it to the installed package's files instead of recall.

How it shows up when you use agents

FAISS usually sits inside something else. When a coding agent or an app answers questions from a large set of documents, a retrieval-augmented generation pipeline first turns each chunk of text into an embedding, a list of numbers that captures meaning. FAISS can hold those lists and return the nearest ones to a question. A vector database offers that storage as a service, with extras around it. FAISS is the search library, so a team that uses it directly writes the saving, loading, updating and access rules itself.

You may meet it when an agent writes Python for a semantic search prototype, or when a project's dependency list names a faiss package. What breaks when it is misunderstood: a team assumes the index is a database, loses it on restart because nobody saved it, or finds that approximate settings return different neighbours than an exact search would. A sensible next step is to compare an approximate index against an exact one on a small sample of your own questions before trusting it. The guide What is RAG shows where retrieval sits in the pipeline, and rag-chunking-planner tests the chunking step that feeds any index.

Common confusions

  • FAISS versus a vector database. FAISS is a library for similarity search that you call from code. A vector database is a service that stores vectors with metadata and handles requests from many clients, and some are built on libraries like it.
  • FAISS versus an embedding model. FAISS does not create the vectors. A separate embedding model does, and FAISS searches what that model produced.
  • Exact versus approximate search. An index that compresses vectors or uses a graph trades some precision for scale, according to the project README. Check the results against an exact search for your data.
  • Myth. FAISS is only for GPUs. The README says some algorithms can run on GPUs, and it describes the library as written in C++ with complete wrappers for Python.

Terms that mention FAISS

1 terms mention this one

More in Local and open models

Next steps

  1. What Is RAG? Retrieval-Augmented Generation Explained The long-form guide.
  2. rag-chunking-planner A skill that exercises it.
  3. Embedding Related term.
  4. Retrieval-augmented generation (RAG) Related term.
  5. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.

Review record

Last verified

Drafted by claude-sonnet-5-5; sources and example targets checked by claude-haiku-5-5 source check; claude-sonnet-5-5 editor pass on 2026-11-24. Last verified .

This entry is still in review, so it is not listed in search engines yet.

Change log (2)
  • : First version.
  • : Verifier pass: applied defect-list corrections.