Skip to main content

Supported multimodal helpers

The Dataset class provides:
  • add_image(row_index, column_name, image_path)
  • add_audio(row_index, column_name, audio_path)
  • add_video(row_index, column_name, video_path)
  • add_media_url(row_index, column_name, media_url, media_type)

Build a multimodal dataset

What gets stored

  • File-based helpers encode content as data URIs (data:<mime>;base64,...)
  • URL-based helper stores the URL directly
This lets task code consume a consistent row schema regardless of data origin.

Use multimodal fields in tasks

Validation rules

Allowed: .jpg, .jpeg, .png, .gif, .webp
Allowed: .mp3, .wav, .ogg, .m4a
Allowed: .mp4, .webm, .mov
Allowed media_type: image, audio, video
Multimodal assets can be large. Start with small batches and validate model input formatting before scaling up.