Python SDK for interacting with Onyx Generative AI Services
Project description
Onyx GenAI SDK
The goal of this project is to simplify the developer experience when interacting with Onyx GenAI Services. This project provides wrappers around the the underlying APIs provided by the service.
Table of Contents
Installation
To install with pip
, run:
pip install onyxgenai
Using the SDK in Onyx
-
Create a Conda Store Environment with all dependencies listed in the requirements.txt
-
Start your JupyterLab Server
-
Create a new Jupyter Notebook
-
Install the client as indicated above
-
Add the onyxgenai client imports to your project
For more in depth examples, see notebooks section of this repo.
Embedding Client
The Embedding Client provides access to the Onyx GenAI Embedding Service. The client provides access to functionality such as:
- Generating Text and Image Embeddings and Vector Storage
- Retrieving Vector Store Collections
- Vector Database Search
Model Client
The Model Client provides access to the Onyx GenAI Model Store Service. The client provides access to functionality such as:
- Retrieving Model Info
- Retrieving Active Model Deployment Info
- Deploying and Deleting Model Deployments
- Performing Text and Image Prediction and Embedding
- Generating Text Completions from an LLM
Running Unit Tests
- To run unit tests, run the following:
pytest
Running Code Quality Checks
- To run code quality checks, run the following:
ruff check .
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
Built Distribution
File details
Details for the file onyxgenai-1.0.2.tar.gz
.
File metadata
- Download URL: onyxgenai-1.0.2.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19acb6b52762dbb75da7a1e36efd3764e4591d1e10405a15ee657b4bb0a3e898 |
|
MD5 | bbb667dd2d3bad32bdbc7682de29a7a7 |
|
BLAKE2b-256 | 0aa47a080ade920e37527914ea9d2a59d5341626cac0a59910134998b1575d95 |
File details
Details for the file onyxgenai-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: onyxgenai-1.0.2-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad89b037d1420cab47a51b01973a9864fb8cbdd796701fa76896c59740e750f7 |
|
MD5 | 68ecc75d47d70d4ba246e37cfa653da1 |
|
BLAKE2b-256 | d64e1e3d14556ee9d395463bb945aaafc5cf6e9609f6e96bcd0689618ab4915d |