Skip to main content

gRPC client for VIU API

Project description

Python Client for Viu API

This package provides the generated Python client code for accessing various text embedding services via gRPC. It is built from proto files found in the proto directory.

Installation

Install the package using pip:

pip install your-package-name

Usage

Import the generated modules in your Python code:

from client import jinaembed_pb2, viu_api_pb2, viu_api_pb2_grpc
import grpc

# Example: Create a request for Jina embeddings
request = jinaembed_pb2.JinaEmbedRequest(
    texts=["Sample text"],
    task=jinaembed_pb2.RETRIEVAL_QUERY,
    truncate_dim=128
)

# Set up a gRPC channel (adjust the target as needed)
channel = grpc.insecure_channel('localhost:50051')
stub = viu_api_pb2_grpc.ApiServiceStub(channel)

# Call the EmbedJinaEmbeddingsV3 RPC
response = stub.EmbedJinaEmbeddingsV3(request)
print(response)

Supported Models

  • NVEmbedV2
  • BGEGemma2
  • JinaEmbeddingsV3

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

python_viu_api-0.3.47.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

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

python_viu_api-0.3.47-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file python_viu_api-0.3.47.tar.gz.

File metadata

  • Download URL: python_viu_api-0.3.47.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for python_viu_api-0.3.47.tar.gz
Algorithm Hash digest
SHA256 ed89b687c559df5d6bafec0218ead640aef08fb063c6d398a363019dd0a1bd22
MD5 27a42a1d06903c62c6f80c91eb38e888
BLAKE2b-256 a09b82692ad6f524ce8f1dfd2cd26929c9d1dab8b8022c03c5da2a49edb37e8f

See more details on using hashes here.

File details

Details for the file python_viu_api-0.3.47-py3-none-any.whl.

File metadata

File hashes

Hashes for python_viu_api-0.3.47-py3-none-any.whl
Algorithm Hash digest
SHA256 0ddb7c7095cb0877266a92aaac52f66359eaab5c9805c5b7120ffca5208b4672
MD5 551406e58dc622a912f3202a1721ebe0
BLAKE2b-256 89651e3363dbf8a5e01a9f610018f43490ae4098fd38ccc7b728a07e16b7374f

See more details on using hashes here.

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