Skip to main content

Python client for GVDB distributed vector database

Project description

gvdb

Python client for GVDB distributed vector database.

Install

pip install gvdb

Quick Start

from gvdb import GVDBClient

client = GVDBClient("localhost:50051", api_key="your-key")  # api_key is optional

# Create a collection
client.create_collection("my_vectors", dimension=768)

# Insert vectors
vectors = [[0.1, 0.2, ...], [0.3, 0.4, ...]]  # list of float lists
ids = [1, 2]
client.insert("my_vectors", ids, vectors)

# Search
results = client.search("my_vectors", query_vector=[0.1, 0.2, ...], top_k=10)
for r in results:
    print(f"ID: {r.id}, distance: {r.distance}")

# Hybrid search (BM25 + vector)
results = client.hybrid_search(
    "my_vectors",
    query_vector=[0.1, 0.2, ...],
    text_query="running shoes",
    top_k=10,
    text_field="description",   # metadata field to search
    return_metadata=True,
)

# Clean up
client.drop_collection("my_vectors")
client.close()

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

gvdb-0.5.0.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

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

gvdb-0.5.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file gvdb-0.5.0.tar.gz.

File metadata

  • Download URL: gvdb-0.5.0.tar.gz
  • Upload date:
  • Size: 31.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gvdb-0.5.0.tar.gz
Algorithm Hash digest
SHA256 8ebeaa5717302cb2a2ca193781a259f11d0ab44151d0f5ac2ae59069789f3790
MD5 1b9a2a1836eab799960ed5fab61cbca5
BLAKE2b-256 a3d00e0782ffd62e768e7a4d820eec659d79bef47347c19965b7abfadca26a11

See more details on using hashes here.

Provenance

The following attestation bundles were made for gvdb-0.5.0.tar.gz:

Publisher: release-please.yml on JonathanBerhe/gvdb

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

File details

Details for the file gvdb-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: gvdb-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gvdb-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f46efcc9a73551389b3bb291c3b64888a4c3cfe75f77a6040ede776c5766508a
MD5 63848246d3fa67ab2fba19fffa2c2a26
BLAKE2b-256 723bc9008b57eeb8c5d7446c325cc52b9cb9839d32c302239a1ebfe9f13329b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for gvdb-0.5.0-py3-none-any.whl:

Publisher: release-please.yml on JonathanBerhe/gvdb

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