Skip to content

Commit 549573b

Browse files
authored
QuotientAI SDK v0.1.0 (#54)
1 parent 9441845 commit 549573b

File tree

22 files changed

+945
-3538
lines changed

22 files changed

+945
-3538
lines changed

.env.test

Lines changed: 0 additions & 15 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,5 @@ cython_debug/
163163
.DS_Store
164164

165165
.ruff_cache
166+
167+
.vscode/

.vscode/settings.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

README.md

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,53 @@
1-
# quotientai Python Client
1+
# quotientai
2+
[![PyPI version](https://img.shields.io/pypi/v/quotientai)](https://pypi.org/project/quotientai)
23

34
## Overview
45

5-
`quotientai` is an SDK and CLI built to manage your workflows on Quotient AI, the AI Evaluation Company.
6+
`quotientai` is an SDK and CLI built to manage artifacts (prompts, datasets), and run evaluations on [Quotient](https://quotientai.co).
67

7-
We are currently in closed beta. For more information on how to get early access visit us at [QuotientAI.co](https://www.quotientai.co/)
8+
## Installation
89

9-
## Support
10-
For assistance and inquiries: [[email protected]](mailto:[email protected])
10+
```console
11+
pip install quotientai
12+
```
13+
14+
## Usage
15+
16+
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](https://docs.quotientai.co) for a more comprehensive walkthrough.
17+
18+
### Examples
19+
20+
**Create a prompt:**
21+
22+
```python
23+
from quotientai import QuotientAI
24+
25+
quotient = QuotientAI()
26+
27+
new_prompt = quotient.prompts.create(
28+
name="customer-support-inquiry"
29+
system_prompt="You are a helpful assistant.",
30+
user_prompt="How can I assist you today?"
31+
)
32+
33+
print(new_prompt)
34+
```
35+
36+
**Create a dataset:**
37+
38+
```python
39+
from quotientai import QuotientAI
40+
41+
quotient = QuotientAI()
42+
43+
new_dataset = quotient.datasets.create(
44+
name="my-sample-dataset"
45+
description="My first dataset",
46+
rows=[
47+
{"input": "Sample input", "expected": "Sample output"},
48+
{"input": "Another input", "expected": "Another output"}
49+
]
50+
)
51+
52+
print(new_dataset)
53+
```

dev/README.md

Whitespace-only changes.

pyproject.toml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "quotientai"
3-
version = "0.0.7"
3+
version = "0.1.0"
44
authors = [
55
"Vic Weiss <[email protected]>",
66
"Freddie Vargus <[email protected]>",
@@ -20,12 +20,7 @@ python = "^3.9"
2020
typer = "^0.9.0"
2121
rich = "^13.7.0"
2222
click = "^8.1.7"
23-
prettytable = "^3.9.0"
24-
requests = "^2.31.0"
25-
numpy = "^1.26.4"
26-
python-dotenv = "^1.0.1"
27-
pandas = "^1.5.3"
28-
postgrest = "^0.16.2"
23+
httpx = "^0.27.0"
2924

3025
[tool.poetry.group.dev.dependencies]
3126
pytest = "^8.0.0"
@@ -37,4 +32,4 @@ requires = ["poetry-core"]
3732
build-backend = "poetry.core.masonry.api"
3833

3934
[tool.poetry.scripts]
40-
quotient = "quotientai.cli.entrypoint:cli"
35+
quotient = "quotientai.cli.entrypoint:app"

quotientai/__init__.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
from .client import QuotientClient
2-
from .exceptions import (
3-
QuotientAIAuthException,
4-
QuotientAIException,
5-
QuotientAIInvalidInputException,
6-
)
1+
from .client import QuotientAI
2+
from .exceptions import QuotientAIError
73

84
__all__ = [
9-
"QuotientClient",
10-
"QuotientAIException",
11-
"QuotientAIAuthException",
12-
"QuotientAIInvalidInputException",
5+
"QuotientAI",
6+
"QuotientAIError",
137
]

quotientai/_enums.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

quotientai/cli/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
from .entrypoint import cli
1+
from .entrypoint import app
22

3-
__all__ = ["cli"]
3+
__all__ = ["app"]

0 commit comments

Comments
 (0)