CLI for evaluating large language models with Quotient
Project description
quotientai
Overview
quotientai is an SDK and CLI built to manage artifacts (prompts, datasets), and run evaluations on Quotient.
Installation
pip install quotientai
Usage
Create an API key on Quotient and set it as an environment variable called QUOTIENT_API_KEY. Then follow the examples below or see our docs for a more comprehensive walkthrough.
Examples
Create a prompt:
from quotientai import QuotientAI
quotient = QuotientAI()
new_prompt = quotient.prompts.create(
name="customer-support-inquiry"
system_prompt="You are a helpful assistant.",
user_prompt="How can I assist you today?"
)
print(new_prompt)
Create a dataset:
from quotientai import QuotientAI
quotient = QuotientAI()
new_dataset = quotient.datasets.create(
name="my-sample-dataset"
description="My first dataset",
rows=[
{"input": "Sample input", "expected": "Sample output"},
{"input": "Another input", "expected": "Another output"}
]
)
print(new_dataset)
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
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 quotientai-0.1.0.tar.gz.
File metadata
- Download URL: quotientai-0.1.0.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d08f1f2a5878b50ff6947c40f492d12d2abd44687aa11c4c8bcc081cf9962c16
|
|
| MD5 |
3d192683e91c941e712bd7825d28af81
|
|
| BLAKE2b-256 |
6fade284177581638a960482e49293c4e7a8ad2903cc48200dbdd9fccbe17e72
|
File details
Details for the file quotientai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: quotientai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72d784016becb7beb4d7c6d2bf84df4858c7f3e1362df7cb2045bd4e55886dfb
|
|
| MD5 |
a1962c1d653e81fc5f34cb3a000e71df
|
|
| BLAKE2b-256 |
86bddbcfd50e3bd23b9f2eba9690d6f6398b8d9cf9de4867531f814a24ccdfce
|