VECQ
VecQ is an in-memory vector search engine from scratch — flat exact search and HNSW approximate search, cosine, L2 and inner-product metrics, metadata filtering, and an automated recall-latency benchmark harness.
Retrieval is the backbone of every LLM application, yet the search layer is usually a black box handed over by a hosted service. I wanted recall and latency numbers I could trust instead of hand-waved benchmarks.
Two indexes side by side: brute-force exact search for ground truth, and a hierarchical navigable small-world graph for speed — with pluggable distance metrics, metadata filtering, and a harness that benchmarks recall against latency automatically.
Multi-metric evaluation, filtering and reproducible benchmarking in pure Python and NumPy — enough visibility to see exactly what HNSW trades away for its speed, and when the trade is worth it.