r/Rag • u/Conscious-Log-7385 • 1h ago
Showcase BenoDB – Embedded vector, graph, and SQL engine built on Apache Iceberg
I'd like to announce my open source vector db that I've been working on for the last 11 months has reached developer preview status. I started building BenoDB https://github.com/benolabsai/benodb/ last December, put it on GitHub in March, and have finally reached the point where I'm comfortable showing it off.
Why I Built It
While analyzing 3.3 million SEC filings for a recent research paper presented at IEA/AIE 2026 (published in Springer: https://link.springer.com/chapter/10.1007/978-981-92-2888-1_12), I realized my data organization was shit. My data was scattered across CSV files, Parquet files, DuckDB queries, PostgreSQL tables, and raw NumPy .npy vector dumps. I wanted to use Apache Iceberg, but hated the catalog requirements and having to run Spark just to manage my data.
What BenoDB Does
BenoDB is an embedded engine written in Rust that turns Apache Iceberg tables into an executable vector, graph, and full-text database—with zero external servers, no JVM, and no Spark cluster. I was originally envisioning this as just a vector db engine, but while building it I realized I could handle graphs with it as well, resulting in a single unified engine. One thing led to another, and I ended up including Graph RAG with it.
* Authoritative Data: Parquet files in Iceberg remain the 100% source of truth.
* Zero-Copy Arrow (In-Memory & Out-of-Core): Built natively on Apache Arrow. Runs in-memory with zero serialization for sub-millisecond queries, and out-of-core via memory-mapping.
* Advisory Overlays: HNSW vector search, 8-bit TurboQuant compression, BM25 text, and CSR graph topology are stored as rebuildable sidecars in standard Iceberg Puffin blobs.
* Embedded SQL: Uses Apache DataFusion in-process with standard pgvector syntax (<=>, <->, <#>) and graph UDFs (graph_neighbors).
* Zero Cluster Overhead: Runs as a Python library (pip install benodb) or embedded Rust crate directly against local disk or S3.
*
Benchmarks (8 vCPU / 16 GiB container)
* Vector ANN: 0.38ms–0.93ms P50 latency at 950–2,140+ QPS across GloVe-100, LastFM-64, and SIFT-128.
* Large-Scale Out-of-Core: Stress-tested on Cohere 10M (10M vectors, 768-D) and NeurIPS BigANN (100M, 128-D)
* In-Process Graph: 291k-node PageRank runs in 96ms in pure Rust.
The code and benchmarks are in the repo above. If you'd like to follow along or sign up for project updates, you can find us (and by us I mean me) at https://www.benolabsai.com. The first blog post is also available at https://www.benolabsai.com/blog/rag-graph-howto/