Skip to main content

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

Project description

zvec logo

Linux x64 CI Linux ARM64 CI macOS ARM64 CI
Code Coverage PyPI Release Python Versions License

🚀 Quickstart | 🏠 Home | 📚 Docs | 📊 Benchmarks | 🎮 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.

💫 Features

  • Blazing Fast: Searches billions of vectors in milliseconds.
  • Simple, Just Works: Install with pip install zvec 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

Install Zvec from PyPI with a single command:

pip install zvec

Requirements:

  • Python 3.10 - 3.12
  • Supported platforms:
    • Linux (x86_64/ARM64)
    • macOS (ARM64)

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
Join Server
🐦 X (Twitter)
Follow @zvec_ai

❤️ 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.0-cp312-cp312-manylinux_2_28_x86_64.whl (20.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

zvec-0.2.0-cp312-cp312-manylinux_2_28_aarch64.whl (18.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

zvec-0.2.0-cp312-cp312-macosx_11_0_arm64.whl (12.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

zvec-0.2.0-cp311-cp311-manylinux_2_28_x86_64.whl (20.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

zvec-0.2.0-cp311-cp311-manylinux_2_28_aarch64.whl (18.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

zvec-0.2.0-cp311-cp311-macosx_11_0_arm64.whl (12.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

zvec-0.2.0-cp310-cp310-manylinux_2_28_x86_64.whl (20.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

zvec-0.2.0-cp310-cp310-manylinux_2_28_aarch64.whl (18.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

zvec-0.2.0-cp310-cp310-macosx_11_0_arm64.whl (12.7 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for zvec-0.2.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4cbb6173a59e6fa09a7106eda819ce1088b6e13278739fb48919ea8294100267
MD5 d4b0710f9864dfbb1141e3785a5084fa
BLAKE2b-256 36b1775d04fa886616f47f859bd5f98a9c892e65ace52dd48d8b71e5d11eae00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1d84cd275b4fd5f70829a74f3b7a6907f8b633cf2bc7292a3eb7dbae2c0e1ca3
MD5 8ad934171f992cae4de95e88fb9b4102
BLAKE2b-256 7e756d1878b22eea22eff0835bb3c3ba1a29d55d285265105cf53eaeb258fb56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a602477b48c31aadb470098f80f4bb5f5f17d8aa96be131fa7d7458367fd8c5
MD5 088c96712c5bd5ab6718024639a044eb
BLAKE2b-256 0dd34914de3a352ce8e3d176cb7fcb7d1bfa5d6a9bec56b31480bb7a77f8acb2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c06e38f7aad5e8cd51ba84784981627a1fc9e1aef54d4bb4a7d7a673cc1a7f2a
MD5 f46cc90a48f1f1cd809bd930142395c4
BLAKE2b-256 57fbe1de47a5c2e0d5c8a98d539f05c88d54d1f7ba9f131863ab7ef7ec589b32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6c5927ceb281653aa4ac7c98ea206f7160e994dc231e32b979ad10f470d2a0f0
MD5 4dce712fb2abff126b5bdf484ed2bb72
BLAKE2b-256 b7f502aceaf72a62f5b8757dfef4f2f7390704c412c8718ca5072eb55f48d351

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a487195adaccc22f0802a7cbedc662b2c7a58252c0f5df291d085f2bc8aa0b5c
MD5 51b7a97580efdf571415065bd4b6608c
BLAKE2b-256 2fef8c23c7ff6a459fbd7132ee40cd5b9d4a323257313389b82e5500b671cf9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0f5e81f1b42852a8b5455b5b3a6886caf97e7877ba90891795a5fd55f96dcbd9
MD5 0a939bc2a120803e0aaef25978a21c35
BLAKE2b-256 d135067be30bb56f443676da851eab365c54fcfd01ef9d81dc38a8fdab10a4bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 64d6aa8c0d025fc125052026821eedeccd48fb054491f69395b07245db750a77
MD5 b719b203e012ce32f5c53e249fd201f9
BLAKE2b-256 5e70ea47685103c867ff4ea3add75936b34031048aab89b6b53c76a1f37b4de6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a1d8ba98fbcf2b79e57c3817452715928c8a550ddabeb250f30c86bf367e9d4f
MD5 476f5b8f584d90f0c5c4ac34a0c750e8
BLAKE2b-256 311e64f06aba6dae466ed327af253482a23ea822365d4e0f4b9ba917aa5f6468

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