← All projects
Project record1 mention
Originally shared on Hacker News

goformersearch

A pure Go vector index offering brute-force and HNSW search behind the same interface, swappable with one line. Targets 10k-50k vector workloads, with HNSW queries under 0.5ms at 50k vectors and a documented crossover point (around 2,400 vectors at 384 dimensions) where HNSW beats brute-force.

Last shared
01 / The problem

What it addresses

Pulling in FAISS for small index sizes (10k-50k vectors) brings C++/Python CGO dependencies that pure Go avoids.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. goformersearch

    A pure Go vector index offering brute-force and HNSW search behind the same interface, swappable with one line. Targets 10k-50k vector workloads, with HNSW queries under 0.5ms at 50k vectors and a documented crossover point (around 2,400 vectors at 384 dimensions) where HNSW beats brute-force.

    Problem: Pulling in FAISS for small index sizes (10k-50k vectors) brings C++/Python CGO dependencies that pure Go avoids.

    Posted by @mikeayles · Original source ↗

    Source text · @mikeayles · · Source ↗

    goformersearch (https://www.mikeayles.com/blog/goformersearch/) is the vector index. Brute-force and HNSW, same interface, swap with one line. I couldn't justify pulling in FAISS for the index sizes I'm dealing with (10k-50k vectors), and the pure Go HNSW searches in under 0.5ms at 50k vectors.