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

Uploaded Python 3

File details

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

File metadata

  • Download URL: zoro_client-0.1.3.tar.gz
  • Upload date:
  • Size: 7.0 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.3.tar.gz
Algorithm Hash digest
SHA256 c3ec5d736736070fbc8614c13cbb36c87ab8e2b4cfc1a343d8cfe25773d31f92
MD5 843546458c733b46c69666bfbf21e0ed
BLAKE2b-256 f3c1bf7199bfaaa9383b0cbed60653a567f7135dca06b5bd2e578244c0783d2d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: zoro_client-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 207d78b8828bd8f4d2479af57149b19632b55319bf837a8bb0e4923c4e0eac6f
MD5 e2173cb54e93bbecfc29b85ffa14206a
BLAKE2b-256 f33c5f68888308be5c1f47b970b18b89f0f184e09988f6d59721a93883007fab

See more details on using hashes here.

Provenance

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