Skip to main content

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

Project description

zvec logo

Code Coverage Main License PyPI Release Python Versions npm Release

alibaba%2Fzvec | Trendshift

🚀 Quickstart | 🏠 Home | 📚 Docs | 📊 Benchmarks | 🔎 DeepWiki | 🎮 Discord

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.

💫 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

Python

Requirements: Python 3.10 - 3.12

pip install zvec

Node.js

npm install @zvec/zvec

✅ Supported Platforms

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

🛠️ 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
Discord
Scan to join Scan to join Click to join

❤️ 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.2.1-cp314-cp314-manylinux_2_28_x86_64.whl (20.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

zvec-0.2.1-cp314-cp314-manylinux_2_28_aarch64.whl (18.8 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

zvec-0.2.1-cp314-cp314-macosx_11_0_arm64.whl (12.8 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

zvec-0.2.1-cp313-cp313-manylinux_2_28_x86_64.whl (20.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

zvec-0.2.1-cp313-cp313-manylinux_2_28_aarch64.whl (18.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

zvec-0.2.1-cp313-cp313-macosx_11_0_arm64.whl (12.8 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

zvec-0.2.1-cp312-cp312-manylinux_2_28_x86_64.whl (20.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

zvec-0.2.1-cp312-cp312-manylinux_2_28_aarch64.whl (18.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

zvec-0.2.1-cp312-cp312-macosx_11_0_arm64.whl (12.8 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

zvec-0.2.1-cp311-cp311-manylinux_2_28_x86_64.whl (20.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

zvec-0.2.1-cp311-cp311-manylinux_2_28_aarch64.whl (18.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

zvec-0.2.1-cp311-cp311-macosx_11_0_arm64.whl (12.8 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

zvec-0.2.1-cp310-cp310-manylinux_2_28_x86_64.whl (20.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

zvec-0.2.1-cp310-cp310-manylinux_2_28_aarch64.whl (18.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

zvec-0.2.1-cp310-cp310-macosx_11_0_arm64.whl (12.8 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for zvec-0.2.1-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 051c0f2df595ec4e58ed2b33d5d035d0d1ad6a23fb24fcdb53cfbae00074400c
MD5 e936bb6f341c3b4a1484f2e8ac3e7cc5
BLAKE2b-256 713bc473e5fbe061c1129b57d4233c9695b9d4824133ba4159b14a955e3fbb73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.1-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 11ddad74d14288e66a0934e24daf843fe1e84df8612a2208b3ff88cf768e504e
MD5 e5efb78ba039d414953f4c1d0258a01b
BLAKE2b-256 817f7e5dbef037c983898bfbedc1bb35dbd046ce22760b84c19c69c6122614c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4f55eb64fa53c04eda9c4cf16afb620564dee9ccd3bc39c7673acc3c1ef508d5
MD5 f7c18c1ed5261cbe632a0e0a0533d363
BLAKE2b-256 b6c7c07c99b1877abecffb4a4f5c8b83f1c4c384ce8604290df8dea042de20ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5cdd2cfbd04f6259802c4ac108a20f9232d60834b663bcdb4acc075df38a31a0
MD5 1e0d7cf52c093738907404374e135997
BLAKE2b-256 68d13e5cb2821ede69f49c45b2fc0edcc7afa883fcbcaf43f59b81004d9122e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.1-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 44cda1783d234706213c39356a9d4d8916ab3d264aad425d3b551e0e55cc3319
MD5 9c1ecdb042d5af49219f6e8632a0703a
BLAKE2b-256 7a511a027dfa55c8c2d00a12b19db0673788836ff8badcd1a2aef989b731b997

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a49cf49ff9212bb3fa40cb1124d1960ff2cbbe255a5a6b6ba10989049bfe025
MD5 52ee81509349027a1a17e23de4052dac
BLAKE2b-256 541404912ec74cb9b19856e79f7e919e1c2bc07032b372b59151b5a79a096e44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c1d98264e560d1caf6c87f56b96687da56394b956172990d730de00021b98012
MD5 ca0e843e000ef6edf935947ed46ae766
BLAKE2b-256 33fc2240ddaf5c17fabb61a85bd3632a336ea76e79ac5a908581f35771833f53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.1-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e822ec20def39589981abd5dda2e1e528bbbc770842984647f9feaa957cdc3f5
MD5 1d40d19f0e98b1167e9c05f3c8985ad7
BLAKE2b-256 3ec9f6dab704fd3f34cae83b05d8e1af59298498cae5e9440b5abe47ff738a12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31921bacf704534cc37b5f1ee07af893bce988646bcfef866bfd67067885de15
MD5 aa73a5212b6167367ad40b820a3977e7
BLAKE2b-256 88900aa27fb8268b7dcad937388679ec8d0133a3ec6733b00c0e6383a7484a17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 59e922e6f41c098e1443c759ab4928c80d40735cff2cbe2307e10119ca2003a5
MD5 13330924ce3913ac946dd1a698f64a8f
BLAKE2b-256 4143a0f6feb83890804f6f708faeb9da11865fa2efd8f0e583996429df7a0c02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.1-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e04e70ffbe55f87597d46b1e08b9297510857652af9afb6ca63785473262c239
MD5 d46ef349d67cd8f18fcba85c23989210
BLAKE2b-256 ea9e24ae233c686ab91f53f8b7ea9d72d0989ef6bdbfaa9688fe2f3cbb0a5339

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ca43f6055556684fc4377fe4c80bd5e60f1c3968004c63be451a8da3652d941
MD5 0610256d515d0d6363bffac75c1143b4
BLAKE2b-256 d1c58ca4cf22aedabd13dd883cce18fb752eed0c4347ff19e392fab9ca0b82d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9dd64ca7da55d9c835a912ee85f417b9e3729635c38348a4106f625735fa0179
MD5 4bf99555ec64ba889e338996080f8aea
BLAKE2b-256 bf7e8ee73b224a0d8b1290ed632ff3fa2b7746a329dd521a2afa967d75d0359a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.1-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b018e00fe3d9b36866a29131be661d8c2cac337b6ccb8e3215356ca72683ff66
MD5 897ef7a5ee0d004e503e7d82204a9587
BLAKE2b-256 41356c6eec1b56d08aada660861197d6228ada735cdcb0a5e35331cbabe57603

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f85367b0120e39295e5460f5fc957e08573e298fad549325044498bf7e832a35
MD5 b3ede7226cfad268d0a51f18f271432c
BLAKE2b-256 4e0cc8e9373441e62815862d7ddb0f40519fd7a8184aaaeb2b5f6cf64d7f4757

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