Skip to content

jamylak/faiss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FAISS Technical Visualizer

This visualisation uses AI Generated code, finetuned for the best visualisation, not code quality

faiss.mov

Interactive C + Raylib visualizer for understanding approximate nearest-neighbour search through the FAISS pipeline, from coarse clustering and inverted lists to product quantization, LUT scoring, and reranking.

What This Visualisation Shows

  • Coarse partition training and centroid assignment
  • IVF list construction and query-time nprobe search
  • Product quantization and query lookup-table scoring
  • Approximate shortlist generation followed by exact reranking
  • A final side-by-side comparison of FAISS-style and ScaNN-style pipelines

Visual Map

flowchart LR
    A["Dataset Vectors"]
    B["Coarse k-means"]
    C["IVF Inverted Lists"]
    D["PQ Codes"]
    E["Query LUT / Approx Scan"]
    F["Refine + Rerank"]

    A --> B
    B --> C
    C --> D
    D --> E
    E --> F
Loading

Controls

  • q: quit
  • Page-specific controls are shown in the footer of each stage
  • Query points, centroids, and step-through states can be dragged or advanced on the relevant pages

Run

make run

About

FAISS Visualizer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors