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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gvdb-0.3.1.tar.gz.
File metadata
- Download URL: gvdb-0.3.1.tar.gz
- Upload date:
- Size: 31.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63e5dfa3ffe1b0597ef0448e64eeadaa427aaf367fae567e4adff2631c66036d
|
|
| MD5 |
472c4b8d8ee308a0bdd4611d92d8f222
|
|
| BLAKE2b-256 |
5a8cf1a8599335fb0aeb2d47fa679fb95d6c03fdce70fe7034a49bf5d0bb80ab
|
Provenance
The following attestation bundles were made for gvdb-0.3.1.tar.gz:
Publisher:
release-please.yml on JonathanBerhe/gvdb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gvdb-0.3.1.tar.gz -
Subject digest:
63e5dfa3ffe1b0597ef0448e64eeadaa427aaf367fae567e4adff2631c66036d - Sigstore transparency entry: 1243290448
- Sigstore integration time:
-
Permalink:
JonathanBerhe/gvdb@868cae5e8949e0bdf4baa25c7def6d1c8504a47f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/JonathanBerhe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yml@868cae5e8949e0bdf4baa25c7def6d1c8504a47f -
Trigger Event:
push
-
Statement type:
File details
Details for the file gvdb-0.3.1-py3-none-any.whl.
File metadata
- Download URL: gvdb-0.3.1-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98491b1ba1a8cfa1f24294dd0236c4e4c6a483674b43509f7e820a68d384c215
|
|
| MD5 |
67459e9c956603444d7007799dd38a23
|
|
| BLAKE2b-256 |
804f98fdcb24635000515291f03952e4bfdc37ec8799311bc1b49aaf5a82811c
|
Provenance
The following attestation bundles were made for gvdb-0.3.1-py3-none-any.whl:
Publisher:
release-please.yml on JonathanBerhe/gvdb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gvdb-0.3.1-py3-none-any.whl -
Subject digest:
98491b1ba1a8cfa1f24294dd0236c4e4c6a483674b43509f7e820a68d384c215 - Sigstore transparency entry: 1243290452
- Sigstore integration time:
-
Permalink:
JonathanBerhe/gvdb@868cae5e8949e0bdf4baa25c7def6d1c8504a47f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/JonathanBerhe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yml@868cae5e8949e0bdf4baa25c7def6d1c8504a47f -
Trigger Event:
push
-
Statement type: