Get an access key
https://auth.getplum.ai Sign up here to get a Plum AI API key.Call the Plum AI - API
Recommended to use Postman
Instead of runningcurl commands, you can also use the API via the Postman interface.
We recommend Postman over curl.
Step 1: Upload your data
All you need to get started is:- The system prompt you’ve been using
- User prompts (inputs) you’ve sent to the LLM
- Outputs that the LLM has returned
Step 2: Generate metric definitions based on your system prompt
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.Step 3: Generate evaluation results based on your uploaded data
In this step, Plum returns a score for each of the criteria defined in the previous step. These scores are out of a maximum of 5. These evaluation results will be used in the next step. Plum’s goal is to boost the lowest of these scores.Step 4: Generate synthetic data based on your uploaded seed data and evaluation results
This step generates synthetic inputs and outputs, each pair being a variation of one of the seed pairs you uploaded in Step 1. Adjust themultiple to adjust the size of the dataset you would like to generate. For each example in your seed dataset, Plum will generate multiple synthetic examples similar to it.
You will need at least 50-100 examples, so set the multiple accordingly.
Step 5: Download the synthetic data in a format that OpenAI’s fine-tuning UI accepts
OpenAI provides the ability to fine-tune and customize their latest models. In order to do this, you will use the synthetic data that Plum generated in the previous step.Step 6: Upload the synthetic data to a major LLM provider like OpenAI’s fine-tuning API
Once you have atrain.jsonl from Step 5, you could optionally create another file, validation.jsonl, using real heldout data that you haven’t used in the seed dataset.
- Go to the OpenAI fine-tuning page: https://platform.openai.com/finetune
- Click “Create”.
- Upload new training data.
- Optional: Select “Upload new” validation data. Drag your validation
.jsonlfile to upload.