Upload historic data
Uploading historic model inputs and generations to an existing Humanloop project.
The Humanloop Python SDK allows you to upload your historic model data to an existing Humanloop project. This can be used to warm-start your project. The data can be considered for feedback and review alongside your new user generated data.
Prerequisites
- You already have a Prompt — if not, please follow our Prompt creation guide first.
Install and initialize the SDK
TypeScript
Python
First you need to install and initialize the SDK. If you have already done this, skip to the next section. Otherwise, open up your terminal and follow these steps:
-
Install the Humanloop TypeScript SDK:
-
Import and initialize the SDK:
Log historic data
Grab your API key from your Settings page.
-
Set up your code to first load up your historic data and then log this to Humanloop, explicitly passing details of the model config (if available) alongside the inputs and output:
-
The process of capturing feedback then uses the returned
log_id
as before.See our guide on capturing user feedback.
-
You can also log immediate feedback alongside the input and outputs: