Python SDK for interacting with Onyx Generative AI Services
Project description
Welcome to the 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
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
-
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.0.tar.gz
.
File metadata
- Download URL: onyxgenai-1.0.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 399e1568535af072adecc9097aa36f9557547b091bf09529e90b5177c42d097e |
|
MD5 | 5b5fed75a59503a2fdce7dd5f3ccec1d |
|
BLAKE2b-256 | 2978a2e0702d2827e8e53caa83a0fb0e503ae558cf93649ccd250e5af82b364a |
File details
Details for the file onyxgenai-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: onyxgenai-1.0.0-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.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5e13855287484cecfaac63c114bd81d1753ebd5d07b53f71f37a9fba8c8022a |
|
MD5 | 84f1674c365366c278859d7e934e1edf |
|
BLAKE2b-256 | d60163b379e0be900e3bc82cf61986b382ff6d4dc12621abc62c8b169f478c12 |