> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openlayer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Label Studio

> Learn how to export data from Openlayer and import it into Label Studio

![LabelStudio hero](https://mintcdn.com/openlayer-44/zlWrng2mbxttdDP9/images/integrations/label_studio_hero.png?fit=max\&auto=format\&n=zlWrng2mbxttdDP9\&q=85\&s=1e4eb618df097044b8015655abdc9609)

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**.

> [!NOTE]
>
> 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.

> [accordion] Export via the Openlayer CLI
>
> Use the [export](https://docs.openlayer.com/api-reference/cli/commands/export.md) command from the [Openlayer CLI](https://docs.openlayer.com/api-reference/cli).
>
> > [!NOTE]
> >
> > 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](https://docs.openlayer.com/api-reference/cli/commands/whoami.md) command. If
> > you are not yet logged in, log in with the [login](https://docs.openlayer.com/api-reference/cli/commands/login.md) command.
>
> Run:
>
> ```json theme={null}
> openlayer export [Openlayer inference pipeline id] [start] [end]
> ```
>
> This will export the data from your inference pipeline. In the downloaded folder, you should see a `dataset.json` file with your data.

> [accordion] Export via the Openlayer UI
>
> 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 output](https://mintcdn.com/openlayer-44/i_IVq7qGt9U6VbHF/images/integrations/requests_page.png?fit=max\&auto=format\&n=i_IVq7qGt9U6VbHF\&q=85\&s=534b1b8a6af65c2dc4c89e2bb530c51b)
>
> Click 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 columns](https://mintcdn.com/openlayer-44/i_IVq7qGt9U6VbHF/images/integrations/export_rows.png?fit=max\&auto=format\&n=i_IVq7qGt9U6VbHF\&q=85\&s=b00bf03dd405029f205a66bbc5b4a027)
>
> Select 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](https://mintcdn.com/openlayer-44/i_IVq7qGt9U6VbHF/images/integrations/label_studio_import.png?fit=max\&auto=format\&n=i_IVq7qGt9U6VbHF\&q=85\&s=81b3f5b1edbf4c347aaaf8cd86ab7172)

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](https://mintcdn.com/openlayer-44/i_IVq7qGt9U6VbHF/images/integrations/label_studio_data.png?fit=max\&auto=format\&n=i_IVq7qGt9U6VbHF\&q=85\&s=816d0028fc9986561417d7e4aca3f7db)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.