freshcrate
Home > Databases > zvec

zvec

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

Description

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

README

zvec logo

Code Coverage Main License PyPI Release Python Versions npm Release

alibaba%2Fzvec | Trendshift

🚀 Quickstart | 🏠 Home | 📚 Docs | 📊 Benchmarks | 🔎 DeepWiki | 🎮 Discord | 🐦 X (Twitter)

Zvec is an open-source, in-process vector database — lightweight, lightning-fast, and designed to embed directly into applications. Built on Proxima (Alibaba's battle-tested vector search engine), it delivers production-grade, low-latency, scalable similarity search with minimal setup.

Important

🚀 v0.3.0 Released on April 3, 2026

  • New Platforms: Initial Windows (MSVC) and Android support. Published official Windows Python and Node.js packages.
  • Efficiency: RabitQ quantization and CPU Auto-Dispatch for optimized SIMD execution.
  • Ecosystem: C-API for custom language bindings and MCP / Skill integration for AI Agents.

👉 Read the Release Notes | View Roadmap 📍

💫 Features

  • Blazing Fast: Searches billions of vectors in milliseconds.
  • Simple, Just Works: Install and start searching in seconds. No servers, no config, no fuss.
  • Dense + Sparse Vectors: Work with both dense and sparse embeddings, with native support for multi-vector queries in a single call.
  • Hybrid Search: Combine semantic similarity with structured filters for precise results.
  • Runs Anywhere: As an in-process library, Zvec runs wherever your code runs — notebooks, servers, CLI tools, or even edge devices.

📦 Installation

Requirements: Python 3.10 - 3.14

pip install zvec
npm install @zvec/zvec

✅ Supported Platforms

  • Linux (x86_64, ARM64)
  • macOS (ARM64)
  • Windows (x86_64)

🛠️ Building from Source

If you prefer to build Zvec from source, please check the Building from Source guide.

⚡ One-Minute Example

import zvec

# Define collection schema
schema = zvec.CollectionSchema(
    name="example",
    vectors=zvec.VectorSchema("embedding", zvec.DataType.VECTOR_FP32, 4),
)

# Create collection
collection = zvec.create_and_open(path="./zvec_example", schema=schema)

# Insert documents
collection.insert([
    zvec.Doc(id="doc_1", vectors={"embedding": [0.1, 0.2, 0.3, 0.4]}),
    zvec.Doc(id="doc_2", vectors={"embedding": [0.2, 0.3, 0.4, 0.1]}),
])

# Search by vector similarity
results = collection.query(
    zvec.VectorQuery("embedding", vector=[0.4, 0.3, 0.3, 0.1]),
    topk=10
)

# Results: list of {'id': str, 'score': float, ...}, sorted by relevance
print(results)

📈 Performance at Scale

Zvec delivers exceptional speed and efficiency, making it ideal for demanding production workloads.

Zvec Performance Benchmarks

For detailed benchmark methodology, configurations, and complete results, please see our Benchmarks documentation.

🤝 Join Our Community

Stay updated and get support — scan or click:

💬 DingTalk 📱 WeChat 🎮 Discord X (Twitter)
DingTalk QR Code WeChat QR Code DiscordX (formerly Twitter) Follow
Scan to join Scan to join Click to join Click to follow

❤️ Contributing

We welcome and appreciate contributions from the community! Whether you're fixing a bug, adding a feature, or improving documentation, your help makes Zvec better for everyone.

Check out our Contributing Guide to get started!

Release History

VersionChangesUrgencyDate
v0.3.1## 🚀 Zvec v0.3.1 Release Notes Hotfix release focused on **collection path handling**. --- ### 🐞 Bug Fixes - Removed collection path restriction ([#340](https://github.com/alibaba/zvec/pull/340)) - Fixed cross-drive collection creation on Windows ([#337](https://github.com/alibaba/zvec/pull/337)) - Improved file-related error messages on Windows ([#341](https://github.com/alibaba/zvec/pull/341)) --- **Full Changelog**: https://github.com/alibaba/zvec/compare/v0.3.0...v0.3.1High4/17/2026
v0.3.0## 🚀 Zvec v0.3.0 Release Notes ### 📦 Platform Support * **Windows:** Added native support for Windows( tested with MSVC 2022/Visual Studio 17.0+ ). * **Mobile:** Enabled Android cross-compilation; verified integration in mobile application environments. * **Package Distribution:** Official Python and Node.js packages for Windows are now available. * **CI/CD:** Continuous Integration now covers macOS, Linux, and Windows (native), alongside Android (cross-compile). ### ⚡ Performance &High4/3/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

rasputin-memoryThe memory system your AI agent deserves. 4-stage hybrid retrieval — Vector + BM25 + Knowledge Graph + Neural Reranker — in <150ms. Self-hosted, $0/query, built for agents that need to actually remembv0.9.1
local-rag-system🤖 Build your own local Retrieval-Augmented Generation system for private, offline AI memory without ongoing costs or data privacy concerns.main@2026-04-21
consolidation-memoryStore, consolidate, and recall coding agent memories with provenance tracking using SQLite and FAISS for fast, structured knowledge access.main@2026-04-21
honcho Memory library for building stateful agentsmain@2026-04-21
bigragSelf-hostable RAG platform - document ingestion, embedding, and vector search behind a simple REST APImain@2026-04-20