Skip to main content

Rust-native vector collection engine with a Python API (WAL durability, ANN, hybrid search).

Project description

zvec-rust

zvec-rust is a Rust-native vector collection engine with a compiled Python API. It provides durable storage (snapshot + write-ahead log), dense/sparse vector search, scalar filtering, full-text search, and hybrid (multi-route) retrieval with pluggable rerankers.

Install

pip install zvec-rust

Quick start

import zvec_rust as zvec

schema = zvec.CollectionSchema(
    name="docs",
    vectors=[zvec.VectorSchema("embedding", zvec.DataType.VECTOR_FP32, dimension=4)],
    fields=[zvec.FieldSchema("category", zvec.DataType.STRING)],
)

col = zvec.create_and_open("./data/docs", schema, durability_mode="interval")
col.insert([
    zvec.Doc("a", vectors={"embedding": [1.0, 0.0, 0.0, 0.0]}, fields={"category": "blog"}),
    zvec.Doc("b", vectors={"embedding": [0.0, 1.0, 0.0, 0.0]}, fields={"category": "news"}),
])

# Vector search with a scalar filter.
hits = col.query(
    zvec.Query(field_name="embedding", vector=[1.0, 0.0, 0.0, 0.0]),
    topk=5,
    filter="category == 'blog'",
)

# Hybrid (multi-route) search fused by a reranker.
hits = col.query(
    [
        zvec.Query(field_name="embedding", vector=[1.0, 0.0, 0.0, 0.0]),
        zvec.Query(field_name="embedding", vector=[0.0, 1.0, 0.0, 0.0]),
    ],
    topk=5,
    reranker=zvec.RrfReRanker(),
)

Highlights

  • Durability modes: always, interval, manual (WAL + checkpoint + manifest).
  • Crash-recovery: committed ops are replayed from the WAL on reopen.
  • ANN index params: HNSW, IVF, Flat, DiskANN, Vamana, HNSW-RaBitQ.
  • Hybrid retrieval: RrfReRanker, WeightedReRanker, CallbackReRanker.
  • Non-throwing *_status API surface returning Status objects.

See the project repository for the full API reference, production guide, and parity audit.

Licensed under Apache-2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zvec_rust-0.1.0.tar.gz (197.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

zvec_rust-0.1.0-cp313-cp313-win_amd64.whl (4.1 MB view details)

Uploaded CPython 3.13Windows x86-64

zvec_rust-0.1.0-cp313-cp313-manylinux_2_28_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

zvec_rust-0.1.0-cp313-cp313-manylinux_2_28_aarch64.whl (4.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

zvec_rust-0.1.0-cp313-cp313-macosx_11_0_arm64.whl (4.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

zvec_rust-0.1.0-cp313-cp313-macosx_10_12_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

zvec_rust-0.1.0-cp312-cp312-manylinux_2_28_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

zvec_rust-0.1.0-cp312-cp312-manylinux_2_28_aarch64.whl (4.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

zvec_rust-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

zvec_rust-0.1.0-cp311-cp311-manylinux_2_28_aarch64.whl (4.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

zvec_rust-0.1.0-cp310-cp310-manylinux_2_28_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

zvec_rust-0.1.0-cp310-cp310-manylinux_2_28_aarch64.whl (4.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

File details

Details for the file zvec_rust-0.1.0.tar.gz.

File metadata

  • Download URL: zvec_rust-0.1.0.tar.gz
  • Upload date:
  • Size: 197.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for zvec_rust-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9a5da2529d2394ef49695cb06d0f5582ac89ea4e56d07c7c2f13c6178e3ab434
MD5 a05c708ccc3a24aeefc383252455ac5d
BLAKE2b-256 d068afdfb068a4b1d0f47b4fd2cb3717b3400272c3659ef945b7f4eaf879d1c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for zvec_rust-0.1.0.tar.gz:

Publisher: release.yml on smarthi/zvec-rust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zvec_rust-0.1.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: zvec_rust-0.1.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for zvec_rust-0.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 394a06035fa1fb22dbc8b5bcfc30f37ba59f23f2c2981b536f07e42307be3d8e
MD5 a0e4b7bb02ebf84ef9de227511431d94
BLAKE2b-256 0c1256b469413439648bc2b4322a88c6f9dedcc277904d839cffe7a9bb5ae666

See more details on using hashes here.

Provenance

The following attestation bundles were made for zvec_rust-0.1.0-cp313-cp313-win_amd64.whl:

Publisher: release.yml on smarthi/zvec-rust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zvec_rust-0.1.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for zvec_rust-0.1.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 edf3ff29f25f1ca1461cb9a00187718ed9817600983fcbecf45d390f706d488c
MD5 e8dca2d3e36deae49450b6aebcdecbf7
BLAKE2b-256 d0d269eb4b19f04045660898beed4f0497ca4a177a193b5c2d39a844d126ad9e

See more details on using hashes here.

Provenance

The following attestation bundles were made for zvec_rust-0.1.0-cp313-cp313-manylinux_2_28_x86_64.whl:

Publisher: release.yml on smarthi/zvec-rust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zvec_rust-0.1.0-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for zvec_rust-0.1.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6f9c6dd50dbe0636992c9c86f6069590354c7dcdc7083905b6835a2283792f8d
MD5 01b15d5741fffea32d8dd6f7720d5c53
BLAKE2b-256 a32e30fce893aee7559120ee0e64a1b5597dd57b0462c816e3fc5d6c2f3f300d

See more details on using hashes here.

Provenance

The following attestation bundles were made for zvec_rust-0.1.0-cp313-cp313-manylinux_2_28_aarch64.whl:

Publisher: release.yml on smarthi/zvec-rust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zvec_rust-0.1.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for zvec_rust-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d2d7c2b827aa84bbab79b55c95cdb832637308485222b9092211b93ca713d94
MD5 d31ba58ee1234ce07f1f25f504e13b99
BLAKE2b-256 85541fd980c60a33cb68c47502b5997b07f4c2a5d2a62dc77389e155853dcb67

See more details on using hashes here.

Provenance

The following attestation bundles were made for zvec_rust-0.1.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: release.yml on smarthi/zvec-rust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zvec_rust-0.1.0-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for zvec_rust-0.1.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2e173078c0b2befbb73922b0f6e31dd48aee7c9742ec19fc0bbc262b6c31027e
MD5 7efc6465aa7b925fea175208166dc36e
BLAKE2b-256 3e9fa10c7c19871ab9653a32f0ae2cc4cb4a1f940f1f54c63a2153d5d5d2be3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for zvec_rust-0.1.0-cp313-cp313-macosx_10_12_x86_64.whl:

Publisher: release.yml on smarthi/zvec-rust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zvec_rust-0.1.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for zvec_rust-0.1.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 56e95f45b6d6199cd9248dd11c95a880828b58c1fee5269b755995143c18270b
MD5 ba0d05ea94435d470a08485c27222f41
BLAKE2b-256 7ff26c157f3165cfd0529fc7116b01a75f87a24c553cb2b5b0bd824ba604fe7f

See more details on using hashes here.

Provenance

The following attestation bundles were made for zvec_rust-0.1.0-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: release.yml on smarthi/zvec-rust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zvec_rust-0.1.0-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for zvec_rust-0.1.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 59bf74515710fb1ed1c7b92993d250daf95af00cd5a52388e9dd22ee883671f2
MD5 8eecfcbfebf2bc723200e9a789fb07c1
BLAKE2b-256 cba4b4937ff5949f91c41c7afa2002413bf10fc55d2959b3d0aaa617e004dcbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for zvec_rust-0.1.0-cp312-cp312-manylinux_2_28_aarch64.whl:

Publisher: release.yml on smarthi/zvec-rust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zvec_rust-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for zvec_rust-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fdd47efbd66f5fd5eca86a244163bef559dbd716d6230cac0d3133813c78f876
MD5 fe674abe18807bebb4ba429df92ffff0
BLAKE2b-256 2f81bfec06df40f2e824703f5d254528e13fe4dc337938f517c4a84c9cc1e36f

See more details on using hashes here.

Provenance

The following attestation bundles were made for zvec_rust-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl:

Publisher: release.yml on smarthi/zvec-rust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zvec_rust-0.1.0-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for zvec_rust-0.1.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ace498ad7b9ffaa91b2ab8440a6dde8f55b7eb9ad053990a18f4af5b24878c1d
MD5 6f493cafdd21ba487a58cc57254a5c86
BLAKE2b-256 183dcde4fac4113281a1d784d810fd3fbe16ba6f332b3a1443b2981a0cf8baa4

See more details on using hashes here.

Provenance

The following attestation bundles were made for zvec_rust-0.1.0-cp311-cp311-manylinux_2_28_aarch64.whl:

Publisher: release.yml on smarthi/zvec-rust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zvec_rust-0.1.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for zvec_rust-0.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fc36305af5a77104906f22455ad1e0f51c2dc11aa8df34bbd5668ac62c51a4ef
MD5 b9f279a5ff25d8e39c99d269d3676683
BLAKE2b-256 48875fa25cf8f60bfbf35ec1be7e039ae7cbf0c5402071d510cc1ae693a764a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for zvec_rust-0.1.0-cp310-cp310-manylinux_2_28_x86_64.whl:

Publisher: release.yml on smarthi/zvec-rust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zvec_rust-0.1.0-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for zvec_rust-0.1.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 58426993414d3591ead856751a496e509654a342e9dfe5c16ccf7f89d26e462a
MD5 74b037d19af3b5a87a1cd108bb05fb3e
BLAKE2b-256 ab57ee0ccc2407b670cd31b09e349fac0f3bd18ac415e1940f27953f1edd86a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for zvec_rust-0.1.0-cp310-cp310-manylinux_2_28_aarch64.whl:

Publisher: release.yml on smarthi/zvec-rust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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