1

Install the Quotient Python SDK

pip install quotientai
2

Create an API Key

Next, create an API key to authenticate yourself. You can create an API key in your settings.

3

Create a Script

Create a file named prompting.py with the following code:

from quotientai import QuotientAI

# initialize the quotient client
quotient = QuotientAI()

# create a prompt
prompt = quotient.prompts.create(
  name="my-first-prompt",
  system_prompt="You are a helpful assistant.",
  user_prompt="Your task is to assist customers by providing clear, concise, and helpful responses to their inquiries"
)

print(prompt)
4

Run the Script

Using your API key, run the script to create your first prompt:

QUOTIENT_API_KEY=your-api-key python prompting.py
5

Open in PromptLab

You just created your first prompt! Now can go to the Quotient Web UI and open your prompt PromptLab.

Hit Run and see what happens!

6

Iterate with IQ

Tell IQ what you think can be better about the model output and start prototyping on your next project.