Better HN
topnewbestaskshowjobs
Log inSign up

gilfyole

4 karma · joined Jul 21, 2026 (4mo ago) · 4 submissions

Submissions

1.

MMAP Behind the Scenes in a Database(infino.ai ↗)

5 points · by gilfyole · 3d ago · 1 comment

comment 2w ago · link · parent

Thanks for this. I tried experimenting with e-means in retrieval engine im building, for that I had to port the CPU version from faiss to Rust

https://crates.io/crates/emeans

https://pypi.org/project/emeans

We use k-means to build the cells of our vector index, which today runs 5 Lloyd iterations on a sample of the data. So I ran a quick test on 500k LAION embeddings (768 dimensions, 4,096 cells) against our current code:

- Current setup of 5 iterations: about 4x faster, with slightly better recall at every probe count (for example 0.9518 vs 0.9473 at 32 probes) and fewer rows scanned per query

- Cells came out much more even. The biggest cell went from 6.6x the average size to 4.75x, and there were no empty cells (we had 7)

- With only 2 iterations it was about 10x faster and recall stayed close to what we have today

These numbers are from my mac. I'm rerunning on a Linux box with AVX-512 now. If it holds up, we'll try it in our index build

Some notes here: https://github.com/infino-ai/infino/issues/1279

comment 4mo ago · link · parent

A bubble in progress waiting for right time (hello 2028) to burst.