-
For offline multimodal chat evaluation projects, use
create_offline_model_evaluation_projectand import data rows of existing conversations. -
For live multimodal chat evaluation projects, use
client.create_model_evaluation_projectand 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.
Set up live multimodal chat evaluation projects
Useclient.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 adataset_nameordataset_idis 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
Useclient.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.
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 (
httpsURLs only)
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 arole 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 messagecontent 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 forx=2, put $$x = 2$$.