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 python-viu-api

Usage

Import the generated modules in your Python code:

from python_viu_api 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.53.tar.gz (4.5 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.53-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_viu_api-0.3.53.tar.gz
  • Upload date:
  • Size: 4.5 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.53.tar.gz
Algorithm Hash digest
SHA256 201d15b04ddd6a6c5ca0bb59b91f6770fe63b39bc0bcf96ee36d0a20b7017c64
MD5 22d25498fd8bbedd847af1db36d34c37
BLAKE2b-256 53a020fe3974d6d077dfb0d96d5612b32ca39b1db6b1b270aaff2503bec10a00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_viu_api-0.3.53-py3-none-any.whl
Algorithm Hash digest
SHA256 230704b9e28c970b7784ce1b517d7f2a8a173e5305b3d9d4bcb8a81be147405c
MD5 3e1975ce75945cfd2a35ee2c0a3a563e
BLAKE2b-256 8a3389980197dcc8aa08e82838655c5ea0e42b7f5515fe9c2700ff2999511ee7

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