Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.21 KB

File metadata and controls

47 lines (33 loc) · 1.21 KB

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