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.54.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.54-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_viu_api-0.3.54.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.54.tar.gz
Algorithm Hash digest
SHA256 bd23dffa1d726b226724736dfeac6d16777032e5fa138d2ee3e334bc980ef48b
MD5 7fb81a0826d8858a80e86a2ba66e1d33
BLAKE2b-256 d98a779cdfa50f8041d3e5951df2aa8ee029a436302e29bf0cf1ccc70999a3f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_viu_api-0.3.54-py3-none-any.whl
Algorithm Hash digest
SHA256 963c4554c329654bbd4422f357b2b9a715defd2d9342cd9951e67983db7511c2
MD5 8b6879e2838690f29622675f625d8ca4
BLAKE2b-256 8c07ae7df77c31410eeade9703e1ca6844e70945002eea417695a0f756d4a890

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