Skip to main content

A high-performance vector database engine with native C++ backend and Python bindings

Project description

English | 中文

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. Battle-tested within Alibaba Group, it delivers production-grade, low-latency and scalable similarity search with minimal setup.

[!Important] 🚀 v0.4.0 (May 9, 2026)

  • Dart/Flutter SDK: Published the official zvec Flutter package with FFI bindings. Supports Android (arm64-v8a) and iOS (arm64) — no manual native compilation required.
  • iOS Build Support: Added support for building on iOS platforms, expanding cross-platform coverage.
  • Enlarged topK Limit: Relaxed the upper bound on topK to support larger-scale recall scenarios.
  • Bug Fixes: SQ8 quantizer recall drop; Windows path handling; sparse vector index ordering.

👉 Read the Release Notes | View Roadmap 📍

💫 Features

  • Blazing Fast: Searches billions of vectors in milliseconds.
  • Simple, Just Works: Install and start searching in seconds. Pure local, 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.
  • Durable Storage: Write-ahead logging (WAL) guarantees persistence — data is never lost, even on process crash or power failure.
  • Concurrent Access: Multiple processes can read the same collection simultaneously; writes are single-process exclusive.
  • Runs Anywhere: As an in-process library, Zvec runs wherever your code runs — notebooks, servers, CLI tools, or even edge devices.

📦 Installation

Python

Requirements: Python 3.10 - 3.14

pip install zvec

Node.js

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

💬 DingTalk 📱 WeChat 🎮 Discord X (Twitter)
DingTalk QR Code WeChat QR Code Discord X (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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

zvec-0.5.0-cp314-cp314-win_amd64.whl (79.7 MB view details)

Uploaded CPython 3.14Windows x86-64

zvec-0.5.0-cp314-cp314-manylinux_2_28_x86_64.whl (74.9 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

zvec-0.5.0-cp314-cp314-manylinux_2_28_aarch64.whl (66.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

zvec-0.5.0-cp314-cp314-macosx_11_0_arm64.whl (46.4 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

zvec-0.5.0-cp313-cp313-win_amd64.whl (77.8 MB view details)

Uploaded CPython 3.13Windows x86-64

zvec-0.5.0-cp313-cp313-manylinux_2_28_x86_64.whl (74.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

zvec-0.5.0-cp313-cp313-manylinux_2_28_aarch64.whl (66.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

zvec-0.5.0-cp313-cp313-macosx_11_0_arm64.whl (46.4 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

zvec-0.5.0-cp312-cp312-win_amd64.whl (77.8 MB view details)

Uploaded CPython 3.12Windows x86-64

zvec-0.5.0-cp312-cp312-manylinux_2_28_x86_64.whl (74.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

zvec-0.5.0-cp312-cp312-manylinux_2_28_aarch64.whl (66.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

zvec-0.5.0-cp312-cp312-macosx_11_0_arm64.whl (46.4 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

zvec-0.5.0-cp311-cp311-win_amd64.whl (77.8 MB view details)

Uploaded CPython 3.11Windows x86-64

zvec-0.5.0-cp311-cp311-manylinux_2_28_x86_64.whl (74.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

zvec-0.5.0-cp311-cp311-manylinux_2_28_aarch64.whl (66.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

zvec-0.5.0-cp311-cp311-macosx_11_0_arm64.whl (46.4 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

zvec-0.5.0-cp310-cp310-win_amd64.whl (77.8 MB view details)

Uploaded CPython 3.10Windows x86-64

zvec-0.5.0-cp310-cp310-manylinux_2_28_x86_64.whl (74.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

zvec-0.5.0-cp310-cp310-manylinux_2_28_aarch64.whl (66.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

zvec-0.5.0-cp310-cp310-macosx_11_0_arm64.whl (46.4 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file zvec-0.5.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: zvec-0.5.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 79.7 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for zvec-0.5.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 a18a614d1402b55b38b18cc67cc5a67c4853e75f83fa59c0411e93c22f088d76
MD5 6a6883e5c7aa9d016eb1fd1cefab64db
BLAKE2b-256 e8c52935a920c343e6dd465e2407826323897f2d168d9b504ad8cfdf729a296b

See more details on using hashes here.

File details

Details for the file zvec-0.5.0-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for zvec-0.5.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8ee01605ba4e0530c13782be703b9adb0d0e395928842c47c380c1f4fe37f652
MD5 75b19690b38284cd62ee14f729a401a1
BLAKE2b-256 da560a9ab232c04ea42f945bc6e1e62ecd39f17b1dfdc037dca3a23963d8f342

See more details on using hashes here.

File details

Details for the file zvec-0.5.0-cp314-cp314-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for zvec-0.5.0-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4c959baf4907b5e25859d7c0414a951a1b00d88eec1144861d94027bdc38be4c
MD5 4ae4003883bb3072939e373d782ce2e5
BLAKE2b-256 9294a524bd6358fb4efd468b99946224081d020f53cd90f01098818be7d77d89

See more details on using hashes here.

File details

Details for the file zvec-0.5.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for zvec-0.5.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2a6f9904cc53ffda2e8a9a14dcb8255e3d70a0d7572ffe74bc37c4786507f381
MD5 d0f7a7e9e8397c704e3cdef0092f357e
BLAKE2b-256 bc9ba5f50c310718366d7fff4098b23f951cb1034e3946aed5bc36eb2b539b28

See more details on using hashes here.

File details

Details for the file zvec-0.5.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: zvec-0.5.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 77.8 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for zvec-0.5.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c2c66f8563486169f1b69575617cdc870d54536b27d1ef97bd864007ec2f126d
MD5 1c61f397156b6f1abe916f7f123bdee0
BLAKE2b-256 6e2677e001f0d1d1827b56f20e730f97adfb413282cb429728b5185d1f4b581a

See more details on using hashes here.

File details

Details for the file zvec-0.5.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for zvec-0.5.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9c03e80819b67bc15d7cea1edd83f979ce0ac943934e37a5e796316f6e90cbaf
MD5 651ec62cd81855313b4daf4021d7ae2b
BLAKE2b-256 79be7c939afd43576c20f4bf1988ea263b68230b263b33263b22e6c332d217de

See more details on using hashes here.

File details

Details for the file zvec-0.5.0-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for zvec-0.5.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 23358ebb3abbf5052d4ada57727b21ac4e788cbc0b00a1e7f0cc142fe15e1017
MD5 497fdecc33ddead44bf9dc7570125914
BLAKE2b-256 6a3e8341031565efde6e37a00eac1170214af2b8986652073966d06ad7f48cc1

See more details on using hashes here.

File details

Details for the file zvec-0.5.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for zvec-0.5.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b2992f58e50abfad85cd0e94239055330b2d881d265c3f3cd87f3901d390daed
MD5 2ab58152bb61d026b844fb307956334f
BLAKE2b-256 76db0752e48829753ee3ac0084ff1e2f680e751fa902feebba5607f01763c92b

See more details on using hashes here.

File details

Details for the file zvec-0.5.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: zvec-0.5.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 77.8 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for zvec-0.5.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 29d1cb3e8f1bf03077283509634c90bfa43e720d4b2d95ee228fa9b1154b48c1
MD5 29a256be7cd39276788262276ed096e1
BLAKE2b-256 b1288d3f41008810c52c123792efe3fc847f1ed1ae6aeefb37de4c2215af238a

See more details on using hashes here.

File details

Details for the file zvec-0.5.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for zvec-0.5.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 87ec6cf4c63f22e2d9483d7f6a08312597a5c3d55e1fec2c526e5a69433ac0d4
MD5 a726b5083d4210767bc8fd0fe63cfe4e
BLAKE2b-256 036728f91ade55784e7f8fbdf08172802a2f6ea2844094d2910489e9eab1f651

See more details on using hashes here.

File details

Details for the file zvec-0.5.0-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for zvec-0.5.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 65feb437d499a5009a0d407aab7e981e89cb6b60b934de859c47362d0460de25
MD5 699cdc6f258f185f2d7d9839fe94a3fb
BLAKE2b-256 17c290c322c2e9d0225528d504b0c050cf4e8e35e38d3f809add0c6ccbacb6cb

See more details on using hashes here.

File details

Details for the file zvec-0.5.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for zvec-0.5.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 da748aa45ec3d182104a0738a57b167c3369e8e0ea6e19f48704ba820a29f301
MD5 4020726e9734a32f10699d66e9efb454
BLAKE2b-256 880be2c8ff7c49bb07dca651b4f6de21015673ea7b961bccd9278f70d190c545

See more details on using hashes here.

File details

Details for the file zvec-0.5.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: zvec-0.5.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 77.8 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for zvec-0.5.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 458474ec8c970ca4ce3a0878913b1cdd103e71af7855bdb02ab39976803abf4f
MD5 917727cdc8b45218da9a082969aa7dd2
BLAKE2b-256 dd1f8226c1ebeee0adc6d6e8f86e906bd7f4384ba677f0df3b58b0a10a7ecb73

See more details on using hashes here.

File details

Details for the file zvec-0.5.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for zvec-0.5.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 82c768dcb99ddb797a7828576b939d3571a0cd4cb81ac58e0d15da87785a07a8
MD5 aa733db72913b9c3b420d534885de688
BLAKE2b-256 179ef1721f6ef16c8fc065fe5a2cae066d75a3ffd51162885b70fbb384a71003

See more details on using hashes here.

File details

Details for the file zvec-0.5.0-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for zvec-0.5.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 71b9d532adec5ce7232a3b32fc430894e7e9617b6f0885712dd00254e48e564c
MD5 eae39d34ad5b859fcab3e4ad815221fc
BLAKE2b-256 9433421557babc2f91cd89a69a5658f69958f318a8d6589d4ae89b7cbda22b00

See more details on using hashes here.

File details

Details for the file zvec-0.5.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for zvec-0.5.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3c2ea1f13111be5cbca8e989e9e96c3656c33012b797654f298117881b105331
MD5 0f77c0224cc9f4d981f44680a665887c
BLAKE2b-256 42d830cee76edd45726acf46fd52872eeb293ee5200581bb211847a755e005ab

See more details on using hashes here.

File details

Details for the file zvec-0.5.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: zvec-0.5.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 77.8 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for zvec-0.5.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5a47bf6dee1a7a183889742483e8052295c82cfeb8e16670878f032deaf97ea3
MD5 482dff2389ec259ae47d0af90e51bc9c
BLAKE2b-256 29a93043c05cc2f43f1c7246f197f26626b3699c42de7938608714ddfab7d9fb

See more details on using hashes here.

File details

Details for the file zvec-0.5.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for zvec-0.5.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 55404e25ba6d466154c8e9ba6e0e199c0fb748db73e47140f349e780d445a02a
MD5 93b7cae4b08a8f90ab6030372be5f12a
BLAKE2b-256 bf9172cef62b4af4f119a346653640ad98df5aa953e1f7044b3dac140c145ea2

See more details on using hashes here.

File details

Details for the file zvec-0.5.0-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for zvec-0.5.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 21aefab5bbb9e7c81f477f404f17f7d492b092c03aeb043710d6c92cb7e09e25
MD5 31e8ac476cd47c6553ab0585d1d193e2
BLAKE2b-256 698d513958365db9cd45a2695992c88e5b8bfe9cfe7ac76851ae3878d02428ba

See more details on using hashes here.

File details

Details for the file zvec-0.5.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for zvec-0.5.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9f34ec3c9fd44f5247b495e8b3a9b3bb202c917a20d4f0d7bcf52078d05751b8
MD5 32027c5c14a19260267e221e9142a7a1
BLAKE2b-256 2b2e7814e18aa4a34d072a8a724f786241db5efc083cff7f0609ce62b7ca5dee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page