Skip to main content
LabelStudio hero Label Studio is an open-source data labeling platform. It supports multiple data and annotation modalities and can be used to add human feedback to model responses, label data for LLM fine-tuning or model training, and more. Openlayer integrates with Label Studio and allows you to export data from an Openlayer inference pipeline to a Label Studio project.
We are actively working on deeper integrations between Openlayer and Label Studio to keep the data in both places in sync.In the future, as you stream data to Openlayer, it will also be sent to Label Studio. Then, when you annotate the data on Label Studio, it will get updated on Openlayer as well.

Export data from Openlayer

First, export your data from your Openlayer inference pipeline.
Use the export command from the Openlayer CLI.
To use the openlayer export command, you must be logged in via the CLI.You can check if you are already logged in with the whoami command. If you are not yet logged in, log in with the login command.
Run:
This will export the data from your inference pipeline. In the downloaded folder, you should see a dataset.json file with your data.
Open your data source and go to Data → Records.The Records page of an Openlayer data source, listing traced requests with their date, latency, cost, tokens, and outputClick the menu (the three dots) in the upper right corner of the table and choose Export data.The Records page options menu open, with Export data, Create tests, and Add custom columnsSelect JSON as the format and click “Export.” This should export all your data to a zipped folder. After you unzip the folder, you should see a dataset.json file inside it.
In both cases, you end up with a dataset.json file with your inference pipeline data. The dataset.json is in a format accepted by Label Studio.

Import data into Label Studio

To import this data via the Label Studio UI, navigate to your Label Studio project. Click “Import” and then “Upload files”. Select the dataset.json file exported from Openlayer. Label Studio's Import Data dialog, with an exported dataset.json file uploaded Now, the data is in Label Studio and you can configure how you want to annotate it. A Label Studio project's task list, with the imported Openlayer rows and their openlayer_ columns