klotz: approximate nearest neighbor*

0 bookmark(s) - Sort by: Date ↓ / Title / - Bookmarks from other users for this tag

  1. Faiss is a C++ library with Python and numpy wrappers for efficient similarity search and clustering of dense vectors, developed primarily at Meta's Fundamental AI Research group. It handles billions of embeddings within a fixed memory budget by offering two distinct scaling strategies: compact quantization codes that compress representations to fit in RAM (trading precision for scale), and graph-based indexes like HNSW and NSG that layer structure over raw vectors for speed.
    - The GPU path is a drop-in replacement; swapping `IndexFlatL2` for `GpuIndexFlatL2` handles memory copies automatically
    - The only hard dependency is a BLAS implementation; CUDA, ROCm, and the Python interface are all optional
    - It explicitly includes tooling for parameter tuning rather than hiding the trade-offs, and maintains a dedicated troubleshooting page
  2. This article explains the internal workings of vector databases, highlighting that they don't perform a brute-force search as commonly described. It details algorithms like HNSW, IVF, and PQ, the tradeoffs between recall, speed, and memory, and how different RAG patterns impact vector database usage. It also discusses production challenges like filtering, updates, and sharding.

Top of the page

First / Previous / Next / Last / Page 1 of 0 SemanticScuttle - klotz.me: Tags: approximate nearest neighbor

About - Propulsed by SemanticScuttle