Skip to main content

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

  1. Installation
  2. Using the SDK in Onyx
  3. Running Unit Tests
  4. Running Code Quality Checks

Installation

To install with pip, run:

pip install onyxgenai

Using the SDK in Onyx

  1. Create a Conda Store Environment with all dependencies listed in the requirements.txt

  2. Start your JupyterLab Server

  3. Create a new Jupyter Notebook

  4. Install the client as indicated above

  5. 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

  1. To run unit tests, run the following:
pytest

Running Code Quality Checks

  1. 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

onyxgenai-1.0.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

onyxgenai-1.0.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file onyxgenai-1.0.1.tar.gz.

File metadata

  • Download URL: onyxgenai-1.0.1.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

Hashes for onyxgenai-1.0.1.tar.gz
Algorithm Hash digest
SHA256 56f2038ca495bd1c46fd1a8fffbb3964937a6c70db33ea3e39e713c6baa6cce1
MD5 ef3ce090803802379f7732da0a8e8911
BLAKE2b-256 ac8b1bca6476159e874916709cd3e8afd73d1c15d434c1178396ad503a53bb86

See more details on using hashes here.

File details

Details for the file onyxgenai-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: onyxgenai-1.0.1-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

Hashes for onyxgenai-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea5fb60b8e0715cb8ae5788b1adba93df4f759c04762c7f6fee6b13bba758c2c
MD5 c9d6f6b346f00072f7ae6a180bb179cd
BLAKE2b-256 61011ea90395141f565f73c4243a6f9fb5d4f06725499ed243579bda418e8a2b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page