You can currently create Datasets in Humanloop in three ways: from existing logs, by uploading a CSV or via the API.
Prerequisites:
To create a Dataset from existing Logs:
Prerequisites:
To create a dataset from a CSV file, we’ll first create a CSV in Google Sheets and then upload it to a dataset in Humanloop.
user_query which is an input to a prompt variable of that name. So in our model config, we’ll need to include {{ user_query }} somewhere, and that placeholder will be populated with the value from the user_query input in the datapoint at generation-time.target which will populate the target of the datapoint. In this case, we use simple strings to define the target.messages are harder to incorporate into a CSV file as they tend to be verbose and hard-to-read JSON. If you want a dataset with messages, consider using the API to upload, or convert from existing logs.
First you need to install and initialize the SDK. If you have already done this, skip to the next section.
Open up your terminal and follow these steps:
On the datasets tab in your Humanloop project you will now see the dataset you just uploaded via the API.
