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)

Documentation

  • For usage examples and a walkthrough of available methods, see the Usage Examples.
  • For detailed API information, refer to the API Reference.

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.1.tar.gz (6.9 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.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zoro_client-0.1.1.tar.gz
  • Upload date:
  • Size: 6.9 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.1.tar.gz
Algorithm Hash digest
SHA256 54734b1292f38c273435daba4b4c8d954559a41619a29bc086854f0698583992
MD5 66b165c5d94e7f2b0e1bb503b9290488
BLAKE2b-256 2027f5f43225dc3c3d47d86b2f1f45024f0c48f1b3f32ca62945f56e267dd914

See more details on using hashes here.

Provenance

The following attestation bundles were made for zoro_client-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: zoro_client-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60e9c3c39691c79e772d97335296e9af6f1ae0478f1561110df26f84fe3e6d02
MD5 e439cee842d0b8b254574e0bc6a1ea47
BLAKE2b-256 071ed9dd5aedafa0e661f5fc9a803a7cfbf63102f1eedbc05f0012cb8a0b8256

See more details on using hashes here.

Provenance

The following attestation bundles were made for zoro_client-0.1.1-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