Shazil Khan

Open source

A small vector database, built from the search layer up.

A small vector database built in Rust with an HNSW index, metadata filtering, persistence and an optional HTTP API. Includes accuracy comparisons against an exact-search baseline.

Project
Velo
My role
Creator
View project source
Velo — prototype / sample content
Prototype / sample contentOpen full image

The problem.

The systems project explored how to build approximate vector search and measure its accuracy against an exact baseline, while keeping the implementation small enough to understand.

My role.

I created the Rust database, index implementations, test harness and optional HTTP API.

What I built.

Exact and approximate search

I implemented FlatIndex and HNSW indexing with cosine, dot-product and L2 metrics.

Filtering and persistence

I added payload filtering, snapshot persistence, tombstone deletion and scalar quantisation.

Measurement rather than a speed claim

I built a recall harness and benchmarks, including an exact-search comparison and reproducible synthetic datasets.

The results.

The public project was released with tests and CI. README performance measurements describe one machine and test setup rather than a general comparison with production database products.

Scope & credits

Creator

Next case study

Offhand

Open source

Let’s talk about your project

What are you
building next?

A new website. A product taking shape. A workflow that could work better.

Tell me what you have in mind, what you want to change, and the timeline you’re working toward.

shazil@shazil.tech

You’ll be talking directly with me.

Connect on LinkedIn