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
Release history Release notifications | RSS feed
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.52.tar.gz
(3.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_viu_api-0.3.52.tar.gz.
File metadata
- Download URL: python_viu_api-0.3.52.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbe9f09d70d06b4e31171b4fad2f5039c2c53bc65c6f6e6ff53806620f6fb29a
|
|
| MD5 |
b47e8b5188371142f57852314458f2a7
|
|
| BLAKE2b-256 |
58f0b0b5f30e95726443b426006fcee02a5a1415aaf07be4e1dba1a9c3564648
|
File details
Details for the file python_viu_api-0.3.52-py3-none-any.whl.
File metadata
- Download URL: python_viu_api-0.3.52-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71409705e8940722e3163b12dc3ccf0e086d2b7c8baaecfaf89e0e64b84a8261
|
|
| MD5 |
dd9cf4fac13976dae90af979be9567a7
|
|
| BLAKE2b-256 |
450d956be21db2425bd6e428ea282246cc2faefaf3a65d48e84d78cc14a2ad87
|