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.5.0 (June 12, 2026)

  • Full-Text Search (FTS): Native full-text search — attach an FTS index to any string field and query it with natural-language or structured expressions, no external search engine required.
  • Hybrid Retrieval: Combine full-text and vector search in a single MultiQuery across dense vectors, sparse vectors, scalar filters, and text.
  • DiskANN Index: New on-disk index that keeps the bulk of the index on disk, drastically cutting memory usage for large-scale datasets.
  • Ecosystem & Platforms: New official Go / Rust SDKs, the Zvec Studio visual tool, and RISC-V support.

👉 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: Support dense and sparse embeddings, multi-vector queries, and a rich selection of vector index types that scale from memory to disk.
  • Full-Text Search (FTS): Native keyword-based full-text search — query string fields with natural-language or structured expressions.
  • Hybrid Search: Fuse vector similarity, full-text search, and structured filters in a single query 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

Zvec offers official SDKs across multiple languages:

  • Python: pip install zvec (requires Python 3.10–3.14)
  • Node.js: npm install @zvec/zvec
  • Go: High-performance Go bindings.
  • Rust: High-performance Rust bindings.
  • Dart/Flutter: flutter pub add zvec

Prefer a visual tool? Try Zvec Studio to browse data and debug queries — no code required.

✅ 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.1-cp314-cp314-win_amd64.whl (13.3 MB view details)

Uploaded CPython 3.14Windows x86-64

zvec-0.5.1-cp314-cp314-manylinux_2_28_x86_64.whl (19.7 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

zvec-0.5.1-cp314-cp314-manylinux_2_28_aarch64.whl (17.4 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

zvec-0.5.1-cp314-cp314-macosx_11_0_arm64.whl (12.1 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

zvec-0.5.1-cp313-cp313-win_amd64.whl (12.8 MB view details)

Uploaded CPython 3.13Windows x86-64

zvec-0.5.1-cp313-cp313-manylinux_2_28_x86_64.whl (19.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

zvec-0.5.1-cp313-cp313-manylinux_2_28_aarch64.whl (17.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

zvec-0.5.1-cp313-cp313-macosx_11_0_arm64.whl (12.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

zvec-0.5.1-cp312-cp312-win_amd64.whl (12.8 MB view details)

Uploaded CPython 3.12Windows x86-64

zvec-0.5.1-cp312-cp312-manylinux_2_28_x86_64.whl (19.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

zvec-0.5.1-cp312-cp312-manylinux_2_28_aarch64.whl (17.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

zvec-0.5.1-cp312-cp312-macosx_11_0_arm64.whl (12.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

zvec-0.5.1-cp311-cp311-win_amd64.whl (12.8 MB view details)

Uploaded CPython 3.11Windows x86-64

zvec-0.5.1-cp311-cp311-manylinux_2_28_x86_64.whl (19.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

zvec-0.5.1-cp311-cp311-manylinux_2_28_aarch64.whl (17.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

zvec-0.5.1-cp311-cp311-macosx_11_0_arm64.whl (12.1 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

zvec-0.5.1-cp310-cp310-win_amd64.whl (12.8 MB view details)

Uploaded CPython 3.10Windows x86-64

zvec-0.5.1-cp310-cp310-manylinux_2_28_x86_64.whl (19.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

zvec-0.5.1-cp310-cp310-manylinux_2_28_aarch64.whl (17.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

zvec-0.5.1-cp310-cp310-macosx_11_0_arm64.whl (12.1 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: zvec-0.5.1-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 13.3 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.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 296887ac746534941b0ed0b22651b91131af9b7bb0ce5fdc36e47bf0d0e08132
MD5 d8dabab28e5a054f3240b28cbc328feb
BLAKE2b-256 8b3abf411e1efb57e0d0ca1eff7fc30566da90bd9f86d7758ba3ba0851df96fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.5.1-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 54cc1a2d9f3fff286c0b9f0c5b464274041b8af9104de05189b951db85452f95
MD5 e066786f4dc5f3fba335222734155d07
BLAKE2b-256 11d9015d7391fd0a93f58219a099a4c46b64c2da8b9678e28ee74db71381bddc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.5.1-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d18e7d160c92cfd7369b895baad8bb54dbb191f8d652651f82eb9a1ecd9fd9e6
MD5 72503f199b068a55628859e77e4783c3
BLAKE2b-256 8f11d8a9d95bf8eafb2a5db08a72ea49b090b3090c8e7e53ff191d1b05534e57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.5.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3c226591bdf5ba46a6862667f8c9034da4030339abf4ecffcee173287fd6073b
MD5 66378b7b5bd8e256fb31c777d59c4492
BLAKE2b-256 ced370e5f578dadc992880453a10ec05ad370a085ef6705ee59cd8f17825ef27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zvec-0.5.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 12.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.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4cd524c866bf35af355940546b3048135d9a37269a43d7eefe348df2bbec94fa
MD5 b70e194cfcaa2b49c41e7c4079100e48
BLAKE2b-256 781fb9a079dd49917a34ce29702b27bda2a966b64af9c9e4590432178d4fbafe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.5.1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 834254168779fcf1af4ab2dd2c78e4194df96a618e135dee423b3a570ee52c35
MD5 29459f3dc21803ab22c7246e577608b7
BLAKE2b-256 273ee4217a151c29897c01b2f77bdd096e79eca804ce97a36ac478e1e02eaaa5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.5.1-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f3d42d74a2992ed104fb268331573cfbfed6fed23085850fe38f5c38033cc609
MD5 86f02aab323cd2490c51a959232c1c2c
BLAKE2b-256 9e559dc487a10c0ffa57f9eae93e97c3b9dc270cc77d9fa31babf4ab5f7a984b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.5.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ddf1d001d0fa1945cbe46eb5a0df6f9ddd8e55f00de872250a41f3d218098924
MD5 57fd535f2f3db4c9a9282ae3098221dc
BLAKE2b-256 6e365f2b7596f16312929547c8bc604ddc58afe9813cb16b8263bbf799d172e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zvec-0.5.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 12.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.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d5408022e9c82fdbbd2b1b871d447ae7ccb72e9a12f71e4a34f951d2e78f259c
MD5 13e0ea153c7b33511968fddd1c5e433f
BLAKE2b-256 c71e34462a1a269afcc3a5b6611e33672987f37ebbcae718a68923b59a6855c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.5.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6d5e47eb9213eedc488339ad872d6b9c18ebdf1188bbd7fce4fe56a6384be4d6
MD5 3947c60f4a220c8b4776b1e926b7309f
BLAKE2b-256 23042b0e90e4b00e149ac210d79953ea656483f22a0601b0358e6769fb30022c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.5.1-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b9b2ad1b047f0a30d8938d3d633f51f0cfcc9a21f7d7cd90f1ea3448bbc41857
MD5 58ac51255725d3e1bd379899133ac887
BLAKE2b-256 bb0aa4639d256c73c836e34ef5d07e93852d17384aae10c03178bd5e82bd881e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.5.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2d882b183a1380c2a8b69114dae26007688ad7c39598448cd7db9ae57c39269f
MD5 90a8b58dfe16b710b150af680f6f1d4b
BLAKE2b-256 5a86e1aa1ccf2d20253df54a3cd5837c7aa063ff8022871a13d66b06464696b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zvec-0.5.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 12.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.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 29ccdc408bfec0b25530cbf3ab2160e3973828d991b0b9150b30f491b3c057ea
MD5 ce816f5307f3dba73d479308a5aef371
BLAKE2b-256 ef1e87e61a2a5d79d35e852b8349f04107a9eed224032456c0b918c6a8b6322a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.5.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b48e741736f4436efc037931011813cf6de04256279a148262726cf2c19dfc59
MD5 b1fee38617de6df95d33ffa5487e94ca
BLAKE2b-256 1035d8c688c4c41a78d609ba91ffa651e7d7ebb4cc4bb208d5be160ef1ab99cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.5.1-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c83216ea4c94c0ce200f5f300eda8d095ee877dfd5a903ddabd7b42b6d06e3f0
MD5 abdff99138f4b0c3b91fddec567cf004
BLAKE2b-256 8b6977abcff29151f6c3d99eefed5e46b82b65acdd296c6a6cc6dca0a7807289

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.5.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc654c7ea029f024ee750b3f2b0c1a3024d06b266b9438ebc8a37b14df20e9dd
MD5 c40bdb9fcfcf59000c88af54fdd014c2
BLAKE2b-256 e6d2e2b5c435d83662d250321deec18a8e9aa70bf7955841b343ff840f3ca16e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zvec-0.5.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 12.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.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0aee4f9c846a280b1e829a3c63f55e090b2852aab514c93379ac91ea850ce289
MD5 629859b787b59b990176a256118f2eb9
BLAKE2b-256 5f8ea27c933097520930c0883d8befdd89e53f14d69a8024c13fe6d7820867cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.5.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2ed83b04991d5d2a694359ee9f945a33f307ac0cf6ef20493ab37f3a0cc78a5b
MD5 a5a282b35475fe9d247b7fa45d4f14d6
BLAKE2b-256 31228f50ae2eff7a42389cbd5c7546b8babfa37c828b0d48bd4ca445344ab0fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.5.1-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bbb8043020a12f9aa4cee4ff0858dca2337e658a8de1bd38a93ef11a8476e951
MD5 6259ff72731ac5016cb240a732164073
BLAKE2b-256 e0c2f7c9deb13f30cf0d89fd170758072b5f7f855aa8ca2867fec9cfd46cc2cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.5.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31c722a36a321734249a1e853d0b264c2d9e9d993687d1a17a16ce9bcd79964e
MD5 ca8e2352c2293dce0c3b85983dac17a4
BLAKE2b-256 b37ffe61d1361701f1c11ed9ce0029c0318517053c37875051fe422d8dea9ece

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