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.4.tar.gz (8.8 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.4-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for zoro_client-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f318152db723342bb64f7a008ff4782cde7711bda16d6edc5ae6c7b1722efbcf
MD5 7acf1d8d51599cfd7082e4dfc60d0ade
BLAKE2b-256 30afc9b3dd7374abeb5c9f0eb0f96d1a4f120e5ec049fd0ccb27ac52fb2e35d2

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for zoro_client-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 31edfd5a199eb5fea5cccde85cccec2405c7f48270c9bc005f1f0ff05177971e
MD5 0ce8db820dc9d0df205313108803a433
BLAKE2b-256 f499cf2b2aba096fec7516b2f7a8b35133f5eb1b5d6333ff8b443f5425e83988

See more details on using hashes here.

Provenance

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