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.72.tar.gz
.
File metadata
- Download URL: okareo-0.0.72.tar.gz
- Upload date:
- Size: 85.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.15 Linux/6.8.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c161e2a54a65253c40668b360c9072c87ad2e0de47bdbc7ced60eb8032cb26f4 |
|
MD5 | d785f4662ae11b165bf8d8719b7f3883 |
|
BLAKE2b-256 | 3953293614a32a330d59442b2fb4dabfd5032aac31f2f8da3a8ed855bbc15562 |
File details
Details for the file okareo-0.0.72-py3-none-any.whl
.
File metadata
- Download URL: okareo-0.0.72-py3-none-any.whl
- Upload date:
- Size: 192.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.15 Linux/6.8.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28b74cfb565ed751399d9cf68824e2465d8c638e6cdb91cb94c88f69d178d88e |
|
MD5 | 2cf7f29cb9d3f870ad1afe9e2cceaaba |
|
BLAKE2b-256 | 78a76dc6d99e76e45953043bd749100032f6f48faef8051c1b2468b1abe25796 |