Skip to main content

CLI for evaluating large language models with Quotient

Project description

quotientai

PyPI version

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quotientai-0.1.1.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quotientai-0.1.1-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file quotientai-0.1.1.tar.gz.

File metadata

  • Download URL: quotientai-0.1.1.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

Hashes for quotientai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fc872502b22b2760bb513e0e250cc8dfbfae302afddbf4bb51924d57f0836611
MD5 97f643ffee9dfef09b48320bab245a56
BLAKE2b-256 62e505face1c16670f63d3511526c140ee26b3a8751e545499007c68bb4a04f5

See more details on using hashes here.

File details

Details for the file quotientai-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: quotientai-0.1.1-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

Hashes for quotientai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 57d98334b6af6f4eec238da6c5308295c13abe214322d7c3d5886274fe89440d
MD5 274e7e445ebc0fdc881b72d6cbe852aa
BLAKE2b-256 4fe7601f2dd443914a2eea7aef4a0cbf6480460c4850069087f03ee77fce34e1

See more details on using hashes here.

Supported by

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