Skip to main content

A Python client library for Zoro-DB, a vector search engine.

Project description

Zoro Client

A Python client library for Zoro-DB, a vector search engine.

PyPI API Docs License

Installation

pip install zoro-client

Connecting to Zoro-DB Server

from zoro_client import ZoroClient

client = ZoroClient(host="localhost", port=6464)
# or
client = ZoroClient(url="http://localhost:6464")

Run Zoro-DB locally

docker run -p 6464:6464 ghcr.io/rajathshttgr/zoro-db:dev

Self-Managed Embeddings

You generate embeddings yourself and store raw vectors.

from zoro_client import VectorConfig, Distance

# Create collection
client.create_collection(
    collection_name="test",
    vector_config=VectorConfig(size=100, distance=Distance.COSINE)
)

# Upsert points

import numpy as np

vectors = np.random.rand(5, 100).tolist()

payloads = [
    {"document": "LangChain integration"},
    {"document": "LlamaIndex integration"},
    {"document": "Hybrid search"},
    {"document": "Fast ANN search"},
    {"document": "Python for Machine Learning"},
]

client.upsert_points(
    collection_name="test",
    vectors=vectors,
    ids=[12, 4, 34, 23, 2],
    payloads=payloads,
)

# search query

results = client.search(
    collection_name="test", query_vector=np.random.rand(100).tolist(), limit=2
)

print(results)

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

zoro_client-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

zoro_client-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for zoro_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e0259c30516512274331bd9ddf5734b690a9946e21b74d891eee6c828d61e9fe
MD5 8c553253e40a18a86af6f8942353ee81
BLAKE2b-256 6115d9335fb6a24b0609af14714286038cc9b68681b1cd717b39ad654807e6b9

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on rajathshttgr/zoro-client

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

File details

Details for the file zoro_client-0.1.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for zoro_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14cc24923eee6121956b2fa06fa163039e4819f037cd111570ebe720968c380d
MD5 f7f5b1e67696b6cbf9062c185a65da7b
BLAKE2b-256 29a52297a42f02e8249f36d9461bbdf1c4daaea89cdceab847ad077c1563fdfa

See more details on using hashes here.

Provenance

The following attestation bundles were made for zoro_client-0.1.0-py3-none-any.whl:

Publisher: publish.yml on rajathshttgr/zoro-client

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