Skip to main content
You need to set up a multimodal chat evaluation project before importing data. The two types of multimodal chat evaluation projects have different project creation methods and data row setups:
  • For offline multimodal chat evaluation projects, use create_offline_model_evaluation_project and import data rows of existing conversations.
  • For live multimodal chat evaluation projects, use client.create_model_evaluation_project and either:
    • (Recommended) Create data rows and send them to projects, like other types of projects.
    • Generate empty data rows upon project creation, which can’t create data rows with attachments and metadata.
For a full walk-through of setting up a multimodal chat evaluation project, see Multimodal chat evaluation.

Set up live multimodal chat evaluation projects

Use client.create_model_evaluation_project to create a live multimodal chat evaluation project. This method takes the same parameters as the traditional client.create_project, with a few additional parameters specific to multimodal chat evaluation projects. The client.create_model_evaluation_project methods require the following parameters:
  • name: The name of your new project.
  • description: An optional description of your project.
  • dataset_name (optional): The name of the dataset where the generated data rows will be located. Include this parameter only if you want to create a new dataset.
  • dataset_id (optional): The dataset ID of an existing Labelbox dataset. Include this parameter if you want to append it to an existing dataset.
  • data_row_count (optional): The number of data row assets that will be generated and used with your project. Defaults to 100 if a dataset_name or dataset_id is included.

Option A: Create and send data rows to projects

Option B: Generate empty data rows

No metadata support

Only use this option if your project doesn’t require metadata attachments or embeddings for data rows.

Set up offline multimodal chat evaluation projects

Use client.create_offline_model_evaluation_project to create offline multimodal chat evaluation projects. This method uses the same parameters as client.create_project and adds validation to ensure the project is set up correctly.
After creating the project, you can import conversational version 2 data rows to the project. To learn how to import annotations, see Import multimodal chat annotations.

Specifications

File format: chat data JSON in conversation v2 format Import methods:
  • Local upload (maximum character count: 2,621,440)
  • IAM Delegated Access
  • Signed URLs (https URLs only)
When importing conversation or thread data to Labelbox, include the following information for each data row in your JSON file.

Import format

Python example

Conversation v2 JSON

Actor object

Actor objects start with a key value of a unique user given id. Each actor object has a role key and a metadata key. The metadata contains the specifics of the actor and will vary depending on the actor’s role.

Message object

Message objects start with a key value of a unique user given id.

Message content

Embed images

You can either embed images directly in the message content or add them as attachments.
For dataRowAttachment, the value of attachmentName must exist in the attachments section.

Sample conversation v2 JSON

SDK import only

You can’t upload the following file from the web interface directly. You must use an import file as described in Import format.

LaTeX support

To add LaTeX formatting, wrap your math expressions using backticks and dollar signs. The editor supports both inline and block LaTeX formatting. For example, to add LaTeX formatting for x=2, put $$x = 2$$.