Skip to main content

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

Project description

zvec logo

Linux x64 CI Code Coverage PyPI Release License

Zvec

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.

📚 Quick Start | 🌐 Website | 📖 Documentation | 📊 Benchmarks | 💜 Discord

💫 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)
    • 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.

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

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

zvec-0.1.1-cp312-cp312-macosx_11_0_arm64.whl (12.9 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

zvec-0.1.1-cp311-cp311-macosx_11_0_arm64.whl (12.9 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

zvec-0.1.1-cp310-cp310-macosx_11_0_arm64.whl (12.9 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for zvec-0.1.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b3bedabb2d1b6828f2f132fe80af840dea1ccc237d580d40594a275b0e579c81
MD5 169db44f736334f700b151a65c501b35
BLAKE2b-256 8622ad34a969258979f4bc24a7009f1a406604c28e46ab4948c853429e7cbfb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f3c40ae10697185781c87b0dadc5c6b7e97e02d13d40017c6a940bd46d206ba3
MD5 02e5c81049b2dcdc9b380b3fc84a7c3b
BLAKE2b-256 1d4732a2b24e80866febad90414704d993bc89beb248ce68ee387c3b049e2aa0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.1.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 879a70e8681042773e2babb91cbdbde0ced8b794c65e2a349d3bf70e358c7b83
MD5 97d9083fb27103241edc119bcbaab573
BLAKE2b-256 c501f9eebf23a322e8153322c8cf208137f4aa7fbd051755f0ab4e6d1efdb18b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff17dcd06a272c4ebf1fe2f747452dae3c3b667d3f7500f726c3a2a8ed1aa7f1
MD5 f62bca1f6f306225add988d0b146af5f
BLAKE2b-256 e9fd1ed306b08c08feb6a2a1f04b682ce37dce925a3f18457074684fd14d8b68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.1.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b54eaa2d50b15f25a19b8f95d71a13bcf4ab6f001bf05d9ba8d79e39d082d4d9
MD5 355db3e3b17a7cce784dda9d61de4309
BLAKE2b-256 880d76f20e67be004a71dbf18170ec2ac0cce6784ac640b350303caed5a7c108

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zvec-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d952b21ca2eba7e956932e44beb665938df93877f3972c51e9155a550713cf22
MD5 6d169560cf8df8f0a93ec4e2e5896f40
BLAKE2b-256 6a809c7a60c09af1cb6086f15cce7e7ef89d2e7b44b3af1de8a4deb30a0ec2c4

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