Python SDK for interacting with Onyx Generative AI Services
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
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
- Using the SDK in Onyx
- Running the Project Locally
- Running Unit Tests
- Running Code Quality Checks
Installation
To install with pip, run:
pip install onyxgenai
To install with conda, run:
conda install -c conda-forge 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 SDK 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 the Project Locally
- To create an environment, run the following:
virtualenv -p python3 venv
source venv/bin/activate
- To install dependencies, run the following:
pip install .
pip install -e ".[dev]" # Optional
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
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 onyxgenai-1.0.5.tar.gz.
File metadata
- Download URL: onyxgenai-1.0.5.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f82d2b54865f9ecb2815c4441b140824422c89a06f361671c7b928e629591f9
|
|
| MD5 |
14ed7dad0ffdbb77c1a5ec48150d06aa
|
|
| BLAKE2b-256 |
5118695065cb363f10bfefad83b39d50dd58252f3d01a095d20d0747aacf791c
|
File details
Details for the file onyxgenai-1.0.5-py3-none-any.whl.
File metadata
- Download URL: onyxgenai-1.0.5-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cae2e2a845b0f7b4a778e915e4f382ad6f83700618744f36003d39ba2452365
|
|
| MD5 |
e87dace78998c424989a8186fb8015bb
|
|
| BLAKE2b-256 |
797d0c7cc6cfee053bcdb330688b41302412062102398f16bc823b409806a839
|