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.1b0-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.1b0-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.1b0-cp310-cp310-manylinux_2_28_x86_64.whl (20.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

File details

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

File metadata

File hashes

Hashes for zvec-0.2.1b0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9e262a45a57a5654a998d995ee22699f72cba8e7f19d4298f48381db550cbe2e
MD5 fdf96c22dfbde27bc55a00ac8e09c6c4
BLAKE2b-256 5ef402d1d45d0f87fbb82d2c620341afddf2e9a6b65551fe3160ea77a3bcc433

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.1b0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f650812b0f412120a2491be8ca06d7c3a6a61d906f67f91f78e42885e01e2e5f
MD5 441c80dc0ef024a8e1aacc726939e834
BLAKE2b-256 e4767cdadfee7f2984730ffb97675565c6921c1167bb46ec051357acd535379c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.2.1b0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1bd32afda31cc95ecfda56d9e9b872fda29074e3c72a71c6ee4c11ed3b4253c1
MD5 85575dd132c09ae0b9b651ea287e11d1
BLAKE2b-256 75142037a86cfe0de3e9f35a59587dc2715b9deae874283d6a739f0bae5154d5

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