Skip to content
HUIAHUB

alibaba/zvec

zvec

A lightweight, lightning-fast, in-process vector database

Metrics updated Established+0.2% 7d

GitHub metrics

Stars
16K
+34 this week
Forks
1K
30-day growth
—
Open issues
44
16K16K16KOct 29, 2026Nov 23, 2026
GitHub stars from the official GitHub API, recorded each time the repository was checked (3 days).
GitHub stars by day
DayGitHub stars
2026-10-2916161
2026-11-1616246
2026-11-2316280

What it does

Zvec is an open-source vector database that runs inside an application and stores embeddings for similarity search. Instead of operating a separate database service, developers create collections on local storage and query them through a language SDK. It is intended for semantic search, retrieval-augmented generation (RAG), and recommendation systems. Its core code is C++, with a Python package in the main repository and separate SDKs for Node.js, Go, Rust, Java, and Dart/Flutter.

Collections hold documents with typed fields and dense or sparse vectors. Zvec supports multi-vector queries, keyword search with BM25 ranking, and filters on structured fields. Its vector index options include flat search, HNSW, IVF, and DiskANN. Collections persist on disk, and the storage layer uses write-ahead logging. The documentation also describes optional embedding functions for converting text into vectors.

To start, select an SDK, define a collection schema, insert documents containing vectors, and run a similarity query. The quickstart documents these steps for Python and Node.js. No database server is required. There are trade-offs: one process has exclusive write access to each collection, queries cannot span collections through joins or unions, and the documented embedding functions currently handle text input only.

Why it matters

A separate vector database server adds another service to deploy and maintain. Zvec keeps vector storage and search inside the application process instead. It also supports keyword retrieval and scalar filtering, so developers can use one local collection for different search methods. That design fits applications that need embedded retrieval rather than a separately managed search service.

Main features

  • Search dense and sparse vectors, including multi-vector queries.
  • Combine vector similarity with full-text search and structured filters.
  • Rank keyword matches using BM25 full-text indexes.
  • Choose flat, HNSW, IVF, or DiskANN vector indexes.
  • Persist collections on disk using write-ahead logging.
  • Insert, update, upsert, fetch, and delete documents.
  • Allow concurrent readers across processes with exclusive single-process writes.

Who it's for

  • Developers adding local semantic search to applications, notebooks, or command-line tools.
  • Teams building RAG systems that retrieve documents using embeddings and metadata filters.
  • Developers combining keyword retrieval and vector similarity in the same collection.
  • Mobile and embedded application developers using supported native SDK builds.

Strengths

  • Runs directly inside applications without a separate database service.
  • Supports dense vectors, sparse vectors, full-text search, and structured filtering.
  • Provides multiple vector index types for different search and storage requirements.
  • Has language SDKs for Python, Node.js, Go, Rust, Java, and Dart/Flutter.

Limitations

  • Only one process can write to a collection at a time, although multiple processes can read it.
  • Cross-collection joins, unions, and searches are unsupported. Queries operate within individual collections.
  • The documented embedding functions currently support text only, not direct image or audio embedding.
  • Prebuilt artifacts are unavailable for RISC-V. Python 3.10 wheels are unavailable for Windows ARM64.

Getting started

Requirements: Python SDK: 64-bit Python 3.10 to 3.14. Java SDK: Java 8 or later. A separate database server is not required.

Always follow the official instructions in the README on GitHub. This overview is our summary, not a copy.

Sources