Python SDK for interacting with Okareo Cloud APIs
Project description
Okareo Python SDK
PyPI: https://pypi.org/project/okareo/
Python library for interacting with Okareo Cloud APIs
Documentation
Getting Started, Guides, and API docs
Installation
-
Install the package
pip install okareo
-
Get your API token from https://app.okareo.com/ (Note: You will need to register first.)
-
Go directly to the "2. Create your API Token" on the landing page in above app.
-
Set the environment variable
OKAREO_API_KEY
to your generated API token.
Get Started Example Notebooks
Please see and run this notebook:
https://github.com/okareo-ai/okareo-python-sdk/blob/main/examples/classification_eval.ipynb
See additional examples under:
https://github.com/okareo-ai/okareo-python-sdk/tree/main/examples
Using Okareo LangChain Callbacks Handler
We provide a LangChain callback handler that lets you easily integrate your current workflows with the Okareo platform.
If don't have LangChain dependencies installed in your environment, you can install the base ones (that will help you run the examples) with:
pip install okareo[langchain]
Integrating callbacks into your chain is as easy as importing the SDK in your module add adding the following
from okareo.callbacks import CallbackHandler
...
handler = CallbackHandler(mut_name="my-model", context_token="context-token")
llm = OpenAI(temperature=0.3, callbacks=[handler])
During the LangChain LLM runs we will collect input and output information so you can analyze it further with the Okareo toolkit.
You can also see an usage example in ./examples/langchain_callback_example.py
All rights reserved for Okareo Inc
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
Built Distribution
File details
Details for the file okareo-0.0.68.tar.gz
.
File metadata
- Download URL: okareo-0.0.68.tar.gz
- Upload date:
- Size: 84.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab778c886fe4bbca086caf71f10366bc0728ca67c7b8734603a335f37b67d33c |
|
MD5 | 6d38b0f37036a5a64f23b6667dd912b0 |
|
BLAKE2b-256 | b2c9cab42c756aa8b99286b0bf9324cf120ba1f3270fd83bf8529f7c9f360beb |
File details
Details for the file okareo-0.0.68-py3-none-any.whl
.
File metadata
- Download URL: okareo-0.0.68-py3-none-any.whl
- Upload date:
- Size: 190.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee3b89fdd9f7011b91d9866fa3d49e597082f6d6a15470440a2cccbf2ac08820 |
|
MD5 | b3d4e42c7320b70ad27525cd78bfa379 |
|
BLAKE2b-256 | 45f6ce3dffea82f570679b204c7d9f31461a1e6cd89cca74662a69e9c4a07120 |