Sign up here to get a Plum AI API key.
Instead of running curl commands, you can also use the API via the Postman interface.
We recommend Postman over curl.
All you need to get started is:
curl -H "Authorization: YOUR_KEY_HERE" -d '{"data":[{"input":"THE FIRST USER PROMPT HERE", "output":"THE FIRST LLM RESPONSE HERE"},
{"input":"ANOTHER USER PROMPT HERE", "output":"THE SECOND LLM RESPONSE HERE"}], "system_prompt":"YOUR SYSTEM PROMPT HERE"}' beta.getplum.ai/v1/data/seed
You will get a dataset ID in the response. Keep it somewhere safe because you’ll need it later.
The ability to evaluate your model comes from well-defined metrics. Plum creates criteria based on your business use case, which it then uses to score the model.
curl -H "Authorization: YOUR_KEY_HERE" -d '{"system_prompt":"YOUR SYSTEM PROMPT GOES HERE"}' beta.getplum.ai/v1/questions
Keep the metrics ID in the response somewhere safe. You’ll need it in the next step.