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.2.tar.gz (11.7 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.2-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quotientai-0.1.2.tar.gz
  • Upload date:
  • Size: 11.7 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.2.tar.gz
Algorithm Hash digest
SHA256 37d2ba5fc83fc100f2480a966b991b8cd75e54eba22ba1202aebb5cab0687849
MD5 53bd0778f21143b49d900ad707fe6039
BLAKE2b-256 a72e481ca2428eef29b1aeb34d0d77edcf75d3a0c7f923668355ba1addf6694d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quotientai-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7fc285d76c2e40cb75c0c376920533a6d91de9dc08ff5ec2273619baf906656e
MD5 25342c1a6674eed3ba620164b2d8704f
BLAKE2b-256 bb9d9cd639fbdfdd6ba5cf5192be0864302bd74e55b4cafc0b76df1f97aba536

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