I'm a data engineer. Lately my company has been pushing AI into everything, and I started getting nervous that all software was about to be vibecoded and I'd get left behind if I didn't force myself to build something real with LLMs.
So I tried to vibecode a low-RAM vector database in Rust from scratch. The result is OspreyDB.
After all that, though, I don't feel safe with it. Doing this actually made me more skeptical of vibecoding for serious infrastructure.
Here is what I ended up building it, how I kept the agents from wrecking the repo and why I'm just dumping it as Apache-2.0 and walking away from supporting it.
How I steered the build without writing Rust by hand
I'm not a Rust programmer. If I had opened one chat and asked an LLM to build a vector database, it would have collapsed after 2,000 lines.
What I did instead was stay at the spec and testing level. I started with papers and RFCs on avoiding RAM-heavy HNSW graphs, split the repo into five separate crates so an agent never needed the whole codebase in context, and ran parallel agents in isolated git worktrees using Orca.
Since I couldn't reliably review every line of unsafe Rust or SIMD code myself, I forced the agents to build guardrails around their own output: banning .unwrap() in production, compile-time alignment checks on the binary file formats, tests comparing every SIMD function against a simple scalar reference loop, and Miri in CI. Whenever CI or a benchmark failed (like Miri catching a real alignment bug in a storage test), I handed the failure log back to an agent to diagnose and fix.
What the engine actually does (at the level I actually understand)
The RAM problem is pretty obvious. 1M x 768d vectors in raw f32 is already ~2.93 GiB. Once you put an HNSW graph on top and keep uncompressed vectors warm for rescoring, memory blows up. In isolated Docker runs on Cohere 1M, pgvector HNSW (f32) hit 8,483 MiB peak container memory, Qdrant HNSW (f32) hit 4,580 MiB, and Qdrant SQ8 in RAM hit 5,475 MiB.
So the design I had the agents implement drops HNSW completely and splits every dataset into two files:
.osi is the small quantized index that stays in memory via mmap (clustered with binary K-Means and scanned sequentially with SIMD instead of chasing graph pointers).
.osv holds the exact f16 vectors and JSON payloads packed into 16 KB Zstd-compressed minipages on disk or S3, read through a capped LRU cache (--cache-mb) or S3 Range-GETs so rescoring doesn't drag gigabytes into the Linux page cache.
There is also an optional .osr file for CPU late-interaction (ColBERT) reranking.
For quantization, naive 1-bit binary quantization looked nice on Cohere 768d and then totally broke on SIFT1M (0.117 recall) because SIFT vectors are non-negative. So the engine rotates vectors first (Walsh-Hadamard) and uses 4-bit RaBitQ stored by bitplane. During search, it scans just the top bitplane first to narrow down candidates, checks the other 3 bits on a shortlist, and only pulls 20 to 40 exact f16 vectors from .osv to rescore. On 1M x 768d, .osi is 513.2 MiB and the Zstd .osv file is 1,378.7 MiB.
Rough benchmark numbers and caveats
Every baseline in my benchmarks repo ran solo in Docker on a 6-core/12-thread Ryzen 5 7600 (16 workers). Between build and query, containers were restarted and the Linux page cache was flushed (dd iflag=nocache count=0), recording cgroup v2 memory.peak (RSS plus page cache). Static read-only single-vector search only (no concurrent writes, deletes, or metadata filtering in this suite).
SIFT1M (1M x 128d, 3,250 test queries): 382.8 MiB peak RAM (19.1k / 18.0k QPS, 0.37 to 0.39 ms P50 at 0.95 to 0.97 recall), vs 1,172 MiB for Qdrant SQ8 on-disk, 1,632 to 1,865 MiB for Qdrant FP32/SQ8, and 1,881 to 2,399 MiB for pgvector.
Cohere 1M (1M x 768d, 550 test queries): 2,028.3 MiB peak RAM (8.4k / 6.3k QPS, 0.59 to 0.75 ms P50), vs 2,868.5 MiB for Qdrant SQ8 on-disk (which dropped to 623 QPS from disk reads), 3,364 to 5,475 MiB for Qdrant in RAM, and 8,483 MiB for pgvector FP32. Caveat: the Cohere test file only has 1,000 queries total, so recall confidence intervals overlap a bit across engines.
Why I'm leaving it OSS and not touching production with it
Even with passing tests, Miri, and decent numbers, I still don't trust vibecoded systems code.
I can explain the high-level design and read benchmark CSVs, sure. If a WAL recovery edge case corrupts data, or compaction deadlocks, or an AVX-512 path acts weird on some specific CPU, I would have to ask an LLM to explain my own storage engine back to me just to start debugging it. That is fine when I'm indexing my own local files on a weekend. It is terrifying for anything real.
So I just left the whole thing Apache-2.0 (https://github.com/ospreydb/ospreydb and https://github.com/ospreydb/benchmarks). Anyone here is welcome to poke around or fork it, because I vibecoded it and I have zero interest in losing my nights supporting a system I don't actually know how to maintain by hand.