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.51.tar.gz (3.6 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.51-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_viu_api-0.3.51.tar.gz
  • Upload date:
  • Size: 3.6 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.51.tar.gz
Algorithm Hash digest
SHA256 41675a12cffb4faa9acb56e25038843529fd72bf0d2b7b5e227795b5e97dd2fc
MD5 c555e29e602fcf65cbfaf3690f80651e
BLAKE2b-256 7969b9ee905104b94f3665f39c956b9e1afc54a6ef3058682a7b117782b885c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_viu_api-0.3.51-py3-none-any.whl
Algorithm Hash digest
SHA256 6f832e323408f204b00e610355bcac506ef7105e5c60b0c061852ec273666d8c
MD5 90e3ea15c2feaefe86ecce6f02a63a50
BLAKE2b-256 bc5b3f401dde54937d160e6ce5eb4ceab88e2c01c0dd96542251eacdc85a24e4

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