> ## 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

<img width="700" style={{ borderRadius: "0.5rem" }} src="https://mintcdn.com/openlayer-44/zlWrng2mbxttdDP9/images/integrations/label_studio_hero.png?fit=max&auto=format&n=zlWrng2mbxttdDP9&q=85&s=1e4eb618df097044b8015655abdc9609" alt="LabelStudio hero" data-path="images/integrations/label_studio_hero.png" />

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.
</Note>

## Export data from Openlayer

First, export your data from your Openlayer inference pipeline.

<AccordionGroup>
  <Accordion title="Export via the Openlayer CLI" icon="code">
    Use the [export](/api-reference/cli/commands/export) command from the [Openlayer CLI](/api-reference/cli).

    <Info>
      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](/api-reference/cli/commands/whoami) command. If
      you are not yet logged in, log in with the [login](/api-reference/cli/commands/login) command.
    </Info>

    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>

  <Accordion title="Export via the Openlayer UI" icon="screen-users">
    Navigate to the “Requests” page of your inference pipeline.

    <img width="700" style={{ borderRadius: "0.5rem" }} src="https://mintcdn.com/openlayer-44/zlWrng2mbxttdDP9/images/integrations/requests_page.png?fit=max&auto=format&n=zlWrng2mbxttdDP9&q=85&s=c277edb3be3974768ce28bb785c209ad" alt="Requests page" data-path="images/integrations/requests_page.png" />

    Click on the download icon in the upper right corner of the data table.

    <img width="700" style={{ borderRadius: "0.5rem" }} src="https://mintcdn.com/openlayer-44/zlWrng2mbxttdDP9/images/integrations/export_rows.png?fit=max&auto=format&n=zlWrng2mbxttdDP9&q=85&s=785c635a4640e08fef7b53cee1744d7f" alt="Exporting rows" data-path="images/integrations/export_rows.png" />

    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.
  </Accordion>
</AccordionGroup>

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.

<img width="700" style={{ borderRadius: "0.5rem" }} src="https://mintcdn.com/openlayer-44/zlWrng2mbxttdDP9/images/integrations/label_studio_import.png?fit=max&auto=format&n=zlWrng2mbxttdDP9&q=85&s=50ebbdda11b4e9c2977d7770f0d2b414" alt="Import from LabelStudio" data-path="images/integrations/label_studio_import.png" />

Now, the data is in Label Studio and you can configure how you want to annotate it.

<img width="700" style={{ borderRadius: "0.5rem" }} src="https://mintcdn.com/openlayer-44/zlWrng2mbxttdDP9/images/integrations/label_studio_data.png?fit=max&auto=format&n=zlWrng2mbxttdDP9&q=85&s=2d4f02a5cb9a0d87c112513737f388a2" alt="Annotate on LabelStudio" data-path="images/integrations/label_studio_data.png" />
