← Back to Leaderboard
VVexDB-THU

VexDB-THU/VexDB-Lite

In-process graph vector search for PostgreSQL, DuckDB, and SQLite

Engineering Health (Methodology)
A · 86/100
Maintenance Activity
● Updated 28d ago
Latest Release
v0.0.17
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance31/35
Fork Adoption21/25
Release Cadence14/20
License Clarity20/20
Self-Hosted
Total Stars
★ 2,318
24h Growth
+0
7d Growth
+0
Forks
359

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

VexDB-THU/VexDB-Lite Star History (2026-05-27 - 2026-12-04) ALL-TIME STAR HISTORY (2026-05 – 2026-12) +2.3k in 191d · avg +12/day 2.4k 1.2k 0 2026-05-27: ★ 12026-06-13: ★ 4362026-06-27: ★ 8672026-07-11: ★ 9882026-07-25: ★ 1,2862026-08-08: ★ 1,7232026-08-22: ★ 2,1742026-09-05: ★ 2,3132026-09-19: ★ 2,3132026-10-03: ★ 2,3142026-10-17: ★ 2,3142026-10-31: ★ 2,3162026-11-12: ★ 2,3172026-11-24: ★ 2,3182026-12-04: ★ 2,318 ★ 2.3k 2026-05 2026-08 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

VexDB-Lite is an in-process vector indexing extension for PostgreSQL, DuckDB, and SQLite, not a standalone vector service. Its shared C++17 core in common/ contains the graph algorithm, CPU SIMD distance dispatch, and PQ and RaBitQ kernels. The host adapters own SQL integration, index lifecycle, and persistence, so the shared search implementation does not imply a common SQL or deployment interface.

PostgreSQL adds floatvector(N) and the vexdb_graph index access method, with DML and WAL integration and an optimizer rewrite to an ANN index scan. DuckDB indexes native FLOAT[N] arrays and can rewrite eligible queries to VEXDB_INDEX_SCAN; it persists the index through DuckDB serialization. SQLite uses a virtual-table interface with transaction support and can also store database-managed files through VexFS. Validate query plans or index behavior on the host you intend to deploy rather than assuming that an ORDER BY with LIMIT uses the index.

Key Capabilities & Differentiators

All three adapters expose L2, cosine, and inner-product search. PostgreSQL and DuckDB expose build controls such as m, ef_construction, and parallel_workers, plus a query-time ef_search setting under engine-specific names. Both have vector buffer caches. PQ trains a codebook and can refine results; RaBitQ estimates distances from quantized representations. Both offer compact index-side storage, which does not imply that the base table's vectors are compressed. On PostgreSQL, a standard PQ build with fewer than 256 training samples or too little build memory falls back to a plain graph with a NOTICE; compact mode instead requires an active quantizer.

DuckDB uses exact filtering by default; filtered ANN is opt-in. SQLite supports incremental INSERT, UPDATE, and DELETE, metadata filtering, LIMIT pushdown, and memory or disk modes. VexFS adds files, directories, version history, restore, and integrity checks. Its optional FTS5 trigram index accelerates file grep; without the index or FTS5, grep scans the database through one connection.

Trade-offs & Limitations

The SIFT-1M benchmark measures throughput and recall on 128-dimensional vectors with m=16 and ef_construction=128 on an Intel Core Ultra 7-265K with 16 GB of RAM. At ef_search=100 and 16 readers, PostgreSQL VexDB-Lite reached 7,883.1 QPS at 98.62% Recall@10 versus pgvector's 4,272.5 QPS at 98.82%. On DuckDB, VexDB-Lite reached 5,379.1 QPS at 98.40% versus VSS's 4,433.3 QPS at 98.04%. These are same-setting comparisons, not recall-matched tests. They do not establish latency tails, performance under selective filters, or write-heavy behavior.

The extension avoids a separate vector service when SQL data and embeddings already live in the same host, but it leaves operations with your team. The open PostgreSQL edition lacks the commercial VexDB edition's index HA, graph sharding, and asynchronous insertion features. DuckDB VexDB-Lite offers serialized persistence but lacks the index compaction listed for DuckDB VSS; include sustained deletes in storage tests. Against managed Pinecone, the decision is about who owns deployment, recovery, and capacity as much as retrieval throughput.

Hardware & Deployment Guide

This is self-hosted software installed into the chosen database runtime. PostgreSQL support spans versions 16–19, with primary validation on 19. Build with CMake 3.14 or newer, a C++17 compiler (GCC 9+ or Clang 10+), and the target installation's pg_config. Add vexdb_lite to shared_preload_libraries, restart PostgreSQL, then run CREATE EXTENSION vexdb_lite. Confirm the target host permits extension installation and a restart before selecting the PostgreSQL path.

DuckDB builds require Git and CMake 3.28 to below 4.0. build_duck.sh configures the extension in the DuckDB v1.5.2 source tree and appends the required metadata footer; the resulting binary must match the exact runtime version. If loading an unsigned local build, use only artifacts you trust. Run the SQLite build and tests with bash build_sqlite.sh test; the macOS preview bundles SQLite 3.45.3 with automatic registration. Stable v0.0.17 added SQLite and aligned quantization across all three hosts. Prerelease v0.0.18-rc.1 restores mainline RaBitQ support and PostgreSQL extension upgrade paths while retaining search defaults; test the upgrade and recovery path on your host before rollout.

Shared core: C++17 graph indexing, CPU SIMD distance dispatch, and PQ/RaBitQ kernels serve three host engines.
PostgreSQL: floatvector(N), the vexdb_graph index method, a shared-memory vector buffer, and parallel index builds.
DuckDB: GRAPH_INDEX on FLOAT[N] with VEXDB_INDEX_SCAN rewrites, serialized persistence, and opt-in filtered ANN.
SQLite: A transactional virtual-table graph index supports INSERT, UPDATE, and DELETE and persists across restarts; VexFS adds database-managed files.
Quantization: Compact storage reduces the index-side vector footprint; PostgreSQL requires an active quantizer in compact mode.
Versioning: v0.0.17 adds SQLite; v0.0.18-rc.1 restores mainline RaBitQ support and PostgreSQL extension upgrade paths without changing search defaults.
Best For

Self-hosted RAG that keeps embeddings and metadata in an existing PostgreSQL deployment, DuckDB pipeline, or local SQLite application, with a team able to validate recall, filtering, and recovery on the chosen engine.

Skip If

You need a managed vector service, cannot install native extensions, or require built-in graph sharding or the commercial edition's index HA features.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Self-Hosted
vexdb agent.db
vexdb agent.db "SELECT vexdb_l2_distance('[1,2]', '[4,6]');"
vexdb fs --db agent.db write /notes/hello.txt
vexdb fs --db agent.db grep -n hello /notes
vexdb fs --db agent.db check
vexdb fs --db agent.db index enable
vexdb fs --db agent.db mount ~/VexDB

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
VexDB-Lite ★2.3k—C++MITIn-process graph vector search for PostgreSQL, DuckDB, and SQLite
zvec16.3k+29C++Apache-2.0In-process C++ vector database for local hybrid retrieval
qdrant35.9k+135RustApache-2.0Rust vector database for filtered and hybrid RAG retrieval
LightRAG41k+110PythonMITGraph-backed RAG for cross-document retrieval and multimodal indexing

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/VexDB-THU/VexDB-Lite.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

VexDB-THU/VexDB-Lite Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about VexDB-Lite

Does VexDB-Lite run as a separate vector database service?

No. Install the PostgreSQL extension, load the version-matched DuckDB extension, or use the SQLite adapter or bundled CLI. Create the engine-specific graph index and query it with SQL. The C++ search core is shared, but index definitions and runtime settings are not portable across the three hosts.

Do I need a GPU, and how should I size the host?

No GPU or VRAM requirement is specified; distance calculations use CPU SIMD. Size host RAM and disk separately for index builds and steady-state queries. Measure peak build memory, index footprint, and recall under realistic dimensions and concurrency. For PostgreSQL PQ, check vexdb_index_info() to confirm that training succeeded and quantization is active.

Can we self-host it commercially and redistribute it?

VexDB-Lite is MIT-licensed and can be self-hosted for commercial use. Preserve the required copyright and license notices when redistributing it, and review the terms of dependencies included in your own package. Self-hosting gives you control over data placement, but access controls, backups, and deployment-specific compliance remain your responsibility.

How should I choose among pgvector, DuckDB VSS, Pinecone, and VexDB-Lite?

Use pgvector as the PostgreSQL baseline and DuckDB VSS as the DuckDB baseline. Compare at matched recall with your own filter selectivity, write load, build memory, and restart tests. Pinecone is relevant when you want a managed service; VexDB-Lite is the alternative when you want retrieval in your existing database and can own its operations.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining VexDB-THU/VexDB-Lite? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature VexDB-THU/VexDB-Lite on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare