Quickstart
Set up your first Nomadic experiment
Below we demonstrate steps for setting up Python notebook to optimize a basic LLM system.
This sample application is a summarization task on a financial advisor session using OpenAI’s GPT-4o mini, evaluated on semantic similarity. Ground truth is provided through the evaluation dataset. The sample uses grid search, a basic hyperparameter search method supported in Nomadic.
For other templates, see Cookbooks repository.
1. Install Nomadic
To run these locally, you’ll need to install the Nomadic SDK, as below:
To sync results with the Nomadic Workspace, you’ll need a Nomadic account and an associated API key.
2. Import necessary libraries
Import Experiment, and the relevant Model, Tuner, and evaluators you will use.
3. Upload evaluation dataset
Below is a sample evaluation dataset that contains the dataset used in this sample summarization task.
4. Create an Experiment
Below is sample code to create a basic Experiment assessing the summarization task.
5. Run the Experiment
6. Interpret Results
Nomadic SDK
With a completed nomadic.Experiment
object, run:
This returns you the optimal hyperparameter setting on your success metrics, and visualizations about different parameter setting performances.