Providing Images as Context
🎨 Data Designer Tutorial: Providing Images as Context for Vision-Based Data Generation
📚 What you'll learn
This notebook demonstrates how to provide images as context to generate text descriptions using vision-language models.
The same multi_modal_context field can also carry audio or video context when the selected model supports those modalities.
- ✨ Visual Document Processing: Converting images to chat-ready format for model consumption
- 🔍 Vision-Language Generation: Using vision models to generate detailed summaries from images
- 🧩 Media Context Pattern: Understanding how
ImageContext,AudioContext, andVideoContextfit into the same configuration field
If this is your first time using Data Designer, we recommend starting with the first notebook in this tutorial series.
📦 Import Data Designer
-
data_designer.configprovides access to the configuration API. -
DataDesigneris the main interface for data generation.
⚙️ Initialize the Data Designer interface
-
DataDesigneris the main object responsible for managing the data generation process. -
When initialized without arguments, the default model providers are used.
🏗️ Initialize the Data Designer Config Builder
-
The Data Designer config defines the dataset schema and generation process.
-
The config builder provides an intuitive interface for building this configuration.
-
When initialized without arguments, the default model configurations are used.
🌱 Seed Dataset Creation
In this section, we'll prepare our visual documents as a seed dataset for summarization:
- Loading Visual Documents: We use a small pets image dataset containing labeled images
- Image Processing: Convert images to base64 format for vision model consumption
- Metadata Extraction: Preserve relevant image information (label, etc.)
The seed dataset will be used to generate detailed text descriptions of each image.
Warning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.
[02:08:08] [WARNING] Warning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.
📥 Loading and processing images...
default/train/0000.parquet: 0%| | 0.00/21.0M [00:00<?, ?B/s]
default/test/0000.parquet: 0%| | 0.00/3.34M [00:00<?, ?B/s]
Generating train split: 0 examples [00:00, ? examples/s]
Generating test split: 0 examples [00:00, ? examples/s]
Map: 0%| | 0/900 [00:00<?, ? examples/s]
✅ Loaded 512 images with columns: ['image', 'label', 'base64_image', 'uuid']
| image | label | base64_image | uuid | |
|---|---|---|---|---|
| 0 | <PIL.JpegImagePlugin.JpegImageFile image mode=... | 0 | iVBORw0KGgoAAAANSUhEUgAAAeQAAAIACAIAAADc8YinAA... | a3b1803c-83c6-4fe9-97fd-3f73b7b3e5d7 |
| 1 | <PIL.JpegImagePlugin.JpegImageFile image mode=... | 0 | iVBORw0KGgoAAAANSUhEUgAAAiQAAAIACAIAAAA9rOAHAA... | f3e1a162-40eb-461b-b395-67605599ab75 |
| 2 | <PIL.JpegImagePlugin.JpegImageFile image mode=... | 0 | iVBORw0KGgoAAAANSUhEUgAAAqoAAAIACAIAAADFYNm1AA... | 1fa78530-ebc5-4e0f-860c-4706b8de0c82 |
| 3 | <PIL.JpegImagePlugin.JpegImageFile image mode=... | 0 | iVBORw0KGgoAAAANSUhEUgAAAwAAAAIACAIAAAC6lJxtAA... | 8ad3c5c7-fa3b-44ce-a445-179ec62c0a74 |
| 4 | <PIL.PngImagePlugin.PngImageFile image mode=RG... | 0 | iVBORw0KGgoAAAANSUhEUgAAAqoAAAIACAIAAADFYNm1AA... | efc4e3b1-deb7-403c-824d-d4eb21de3bca |
DataDesignerConfigBuilder( seed_dataset: df seed )
🧩 Media context and model capabilities
multi_modal_context accepts media context descriptors such as ImageContext, AudioContext, and VideoContext. Data Designer reads the referenced seed columns and serializes them for the model request, but the selected model still determines which modalities are valid.
This notebook uses image context only because image-capable VLMs are broadly available. Before combining image, audio, and video in one column, choose a model alias backed by an omni or otherwise modality-compatible model, and check that the provider accepts every context type you send.
For base64 seed columns, store the raw base64 payload without a data:<media-type>;base64, prefix and specify the media format on the context object:
media_context = [
dd.ImageContext(
column_name="image_base64",
data_type=dd.ModalityDataType.BASE64,
image_format=dd.ImageFormat.PNG,
),
dd.AudioContext(
column_name="audio_base64",
data_type=dd.ModalityDataType.BASE64,
audio_format=dd.AudioFormat.MP3,
),
dd.VideoContext(
column_name="video_base64",
data_type=dd.ModalityDataType.BASE64,
video_format=dd.VideoFormat.MP4,
),
]
URL-backed media can use data_type=dd.ModalityDataType.URL, subject to the provider's URL support and file-size limits. Local audio/video paths require explicit URL mode and require the model endpoint to have filesystem access to the same paths, typically a colocated vLLM server configured for local media access.
[02:09:11] [INFO] ✅ Validation passed
🔁 Iteration is key – preview the dataset!
-
Use the
previewmethod to generate a sample of records quickly. -
Inspect the results for quality and format issues.
-
Adjust column configurations, prompts, or parameters as needed.
-
Re-run the preview until satisfied.
[02:09:11] [INFO] 🎥 Preview generation in progress
[02:09:11] [INFO] |-- 🔒 Jinja rendering engine: secure
[02:09:11] [INFO] ✅ Validation passed
[02:09:11] [INFO] ⛓️ Sorting column configs into a Directed Acyclic Graph
[02:09:11] [INFO] Skipping model health checks because DATA_DESIGNER_SKIP_MODEL_HEALTH_CHECKS=1
[02:09:11] [INFO] ⚡ Using async task-queue preview
[02:09:11] [INFO] 📝 llm-text model config for column 'description'
[02:09:11] [INFO] |-- model: 'nvidia/nemotron-3-nano-omni-30b-a3b-reasoning'
[02:09:11] [INFO] |-- model alias: 'nvidia-vision'
[02:09:11] [INFO] |-- model provider: 'nvidia'
[02:09:11] [INFO] |-- inference parameters:
[02:09:11] [INFO] | |-- generation_type=chat-completion
[02:09:11] [INFO] | |-- max_parallel_requests=4
[02:09:11] [INFO] | |-- temperature=0.60
[02:09:11] [INFO] | |-- top_p=0.95
[02:09:11] [INFO] ⚡️ Async generation: 1 column(s) (column 'description'), 2 tasks across 1 row group(s)
[02:09:11] [INFO] 🚀 (1/1) Dispatching with 2 records
[02:09:12] [INFO] 🌱 (1/1) Sampling 2 records from seed dataset
[02:09:12] [INFO] |-- seed dataset size: 512 records
[02:09:12] [INFO] |-- sampling strategy: ordered
[02:09:28] [INFO] 📊 Progress [16.9s]:
[02:09:28] [INFO] |-- 🐥 column 'description': 1/2 (50%) 0.1 rec/s
[02:09:33] [INFO] 📊 Progress [21.6s]:
[02:09:33] [INFO] |-- 🐔 column 'description': 2/2 (100%) 0.1 rec/s
[02:09:33] [INFO] ✅ Async generation complete [21.6s]: 2 ok, 0 failed across 1 column(s)
[02:09:33] [INFO] 📊 Model usage summary:
[02:09:33] [INFO] |-- model: nvidia/nemotron-3-nano-omni-30b-a3b-reasoning
[02:09:33] [INFO] |-- tokens: input=658, output=1975, reasoning=1243 (estimated), total=2633, tps=121
[02:09:33] [INFO] |-- reasoning token count estimated with tiktoken
[02:09:33] [INFO] |-- requests: success=2, failed=0, total=2, rpm=5
[02:09:33] [INFO] 📐 Measuring dataset column statistics:
[02:09:33] [INFO] |-- 📝 column: 'description'
[02:09:33] [INFO] |-- 🌱 column: 'uuid'
[02:09:33] [INFO] |-- 🌱 column: 'label'
[02:09:33] [INFO] |-- 🌱 column: 'base64_image'
[02:09:33] [INFO] 👏 Preview complete!
Seed Columns ┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Name ┃ Value ┃ ┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ uuid │ a3b1803c-83c6-4fe9-97fd-3f73b7b3e5d7 │ ├──────────────┼─────────────────────────────────────────────────────────────────────────────────────────────┤ │ label │ 0 │ ├──────────────┼─────────────────────────────────────────────────────────────────────────────────────────────┤ │ base64_image │ iVBORw0KGgoAAAANSUhEUgAAAeQAAAIACAIAAADc8YinAAEAAElEQVR4nOy9V5ckuZEmamZwEREpSna1YAv28JLDHT… │ └──────────────┴─────────────────────────────────────────────────────────────────────────────────────────────┘ Generated Columns ┏━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Name ┃ Value ┃ ┡━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ description │ # Detailed Description of the Image │ │ │ │ │ │ ## Main Subject │ │ │ The primary focus of the image is a close-up portrait of a black and white cat, likely a │ │ │ tuxedo or bicolor breed. │ │ │ │ │ │ * **Facial Pattern:** The cat has a distinctive coloration. A wide white blaze runs down │ │ │ the center of its forehead, separating the black fur on either side. The area around the │ │ │ eyes and the top of the head is predominantly black. The muzzle, chin, and chest area │ │ │ visible at the bottom are white. │ │ │ * **Eyes:** The cat has large, round eyes with a striking lime-green or yellow-green hue. │ │ │ The pupils are vertical black slits, indicating alertness. The eyes are wide open, giving │ │ │ the cat an attentive or slightly surprised expression as it looks upward. │ │ │ * **Nose and Mouth:** It has a small, pinkish-brown nose. Just below the nose, there is a │ │ │ small, distinct patch of black fur on the upper lip/muzzle area, contrasting with the │ │ │ surrounding white fur. │ │ │ * **Whiskers:** Long, prominent white whiskers extend outward from the sides of its │ │ │ muzzle. │ │ │ │ │ │ ## Background │ │ │ The background is simple and out of focus to keep attention on the cat. │ │ │ * To the left, there is a plain, light grey wall. │ │ │ * To the right, a sliver of a beige or light yellow wall is visible. │ │ │ * The lighting appears soft and even, highlighting the texture of the cat's fur without │ │ │ harsh shadows. │ │ │ │ │ │ ## Colors │ │ │ The dominant colors are the high-contrast black and white of the cat's coat, accented by the │ │ │ vibrant yellow-green of its eyes and the neutral tones of the background. │ └─────────────┴──────────────────────────────────────────────────────────────────────────────────────────────┘
| uuid | label | base64_image | description | |
|---|---|---|---|---|
| 0 | a3b1803c-83c6-4fe9-97fd-3f73b7b3e5d7 | 0 | iVBORw0KGgoAAAANSUhEUgAAAeQAAAIACAIAAADc8YinAA... | # Detailed Description of the Image\n\n## Main... |
| 1 | f3e1a162-40eb-461b-b395-67605599ab75 | 0 | iVBORw0KGgoAAAANSUhEUgAAAiQAAAIACAIAAAA9rOAHAA... | The image displays a close-up shot of a fluffy... |
📊 Analyze the generated data
-
Data Designer automatically generates a basic statistical analysis of the generated data.
-
This analysis is available via the
analysisproperty of generation result objects.
──────────────────────────────────────── 🎨 Data Designer Dataset Profile ───────────────────────────────────────── Dataset Overview ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ number of records ┃ number of columns ┃ percent complete records ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ 2 │ 4 │ 100.0% │ └─────────────────────────────────┴─────────────────────────────────┴─────────────────────────────────────────────┘ 🌱 Seed-Dataset Columns ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ column name ┃ data type ┃ number unique values ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ uuid │ string │ 2 (100.0%) │ ├──────────────────────────────────┼──────────────────────────┼───────────────────────────────────────────────────┤ │ label │ int │ 1 (50.0%) │ ├──────────────────────────────────┼──────────────────────────┼───────────────────────────────────────────────────┤ │ base64_image │ string │ 2 (100.0%) │ └──────────────────────────────────┴──────────────────────────┴───────────────────────────────────────────────────┘ 📝 LLM-Text Columns ┏━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ ┃ ┃ ┃ prompt tokens ┃ completion tokens ┃ ┃ column name ┃ data type ┃ number unique values ┃ per record ┃ per record ┃ ┡━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ description │ string │ 2 (100.0%) │ 29.0 +/- 0.0 │ 346.5 +/- 7.8 │ └──────────────────┴───────────────┴──────────────────────────────┴─────────────────────┴─────────────────────────┘ ╭────────────────────────────────────────────────── Table Notes ──────────────────────────────────────────────────╮ │ │ │ 1. All token statistics are based on a sample of max(1000, len(dataset)) records. │ │ 2. Tokens are calculated using tiktoken's cl100k_base tokenizer. │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────
🔎 Visual Inspection
Let's compare the original image with the generated description to validate quality:
📄 Original Image:
📝 Generated Description:
╭─ Image Description ─────────────────────────────────────────────────────────────────────────────────────────────╮ │ # Detailed Description of the Image │ │ │ │ ## Main Subject │ │ The primary focus of the image is a close-up portrait of a black and white cat, likely a tuxedo or bicolor │ │ breed. │ │ │ │ * **Facial Pattern:** The cat has a distinctive coloration. A wide white blaze runs down the center of its │ │ forehead, separating the black fur on either side. The area around the eyes and the top of the head is │ │ predominantly black. The muzzle, chin, and chest area visible at the bottom are white. │ │ * **Eyes:** The cat has large, round eyes with a striking lime-green or yellow-green hue. The pupils are │ │ vertical black slits, indicating alertness. The eyes are wide open, giving the cat an attentive or slightly │ │ surprised expression as it looks upward. │ │ * **Nose and Mouth:** It has a small, pinkish-brown nose. Just below the nose, there is a small, distinct │ │ patch of black fur on the upper lip/muzzle area, contrasting with the surrounding white fur. │ │ * **Whiskers:** Long, prominent white whiskers extend outward from the sides of its muzzle. │ │ │ │ ## Background │ │ The background is simple and out of focus to keep attention on the cat. │ │ * To the left, there is a plain, light grey wall. │ │ * To the right, a sliver of a beige or light yellow wall is visible. │ │ * The lighting appears soft and even, highlighting the texture of the cat's fur without harsh shadows. │ │ │ │ ## Colors │ │ The dominant colors are the high-contrast black and white of the cat's coat, accented by the vibrant │ │ yellow-green of its eyes and the neutral tones of the background. │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
🆙 Scale up!
-
Happy with your preview data?
-
Use the
createmethod to submit larger Data Designer generation jobs.
[02:09:33] [INFO] OpenTelemetry metrics available at http://127.0.0.1:9464/metrics
[02:09:33] [INFO] 🎨 Creating Data Designer dataset
[02:09:33] [INFO] |-- 🔒 Jinja rendering engine: secure
[02:09:33] [INFO] ✅ Validation passed
[02:09:33] [INFO] ⛓️ Sorting column configs into a Directed Acyclic Graph
[02:09:33] [INFO] Skipping model health checks because DATA_DESIGNER_SKIP_MODEL_HEALTH_CHECKS=1
[02:09:33] [INFO] ⚡ Using async task-queue builder
[02:09:33] [INFO] 📝 llm-text model config for column 'description'
[02:09:33] [INFO] |-- model: 'nvidia/nemotron-3-nano-omni-30b-a3b-reasoning'
[02:09:33] [INFO] |-- model alias: 'nvidia-vision'
[02:09:33] [INFO] |-- model provider: 'nvidia'
[02:09:33] [INFO] |-- inference parameters:
[02:09:33] [INFO] | |-- generation_type=chat-completion
[02:09:33] [INFO] | |-- max_parallel_requests=4
[02:09:33] [INFO] | |-- temperature=0.60
[02:09:33] [INFO] | |-- top_p=0.95
[02:09:33] [INFO] ⚡️ Async generation: 1 column(s) (column 'description'), 10 tasks across 1 row group(s)
[02:09:33] [INFO] 🚀 (1/1) Dispatching with 10 records
[02:09:34] [INFO] 🌱 (1/1) Sampling 10 records from seed dataset
[02:09:34] [INFO] |-- seed dataset size: 512 records
[02:09:34] [INFO] |-- sampling strategy: ordered
[02:09:50] [INFO] 📊 Progress [16.7s]:
[02:09:50] [INFO] |-- 🥚 column 'description': 1/10 (10%) 0.1 rec/s
[02:10:04] [INFO] 📊 Progress [30.4s]:
[02:10:04] [INFO] |-- 🐣 column 'description': 4/10 (40%) 0.1 rec/s
[02:10:15] [INFO] 📊 Progress [41.2s]:
[02:10:15] [INFO] |-- 🐥 column 'description': 6/10 (60%) 0.1 rec/s
[02:10:20] [INFO] 📊 Progress [47.0s]:
[02:10:20] [INFO] |-- 🐤 column 'description': 8/10 (80%) 0.2 rec/s
[02:10:29] [INFO] 📊 Progress [55.8s]:
[02:10:29] [INFO] |-- 🐤 column 'description': 9/10 (90%) 0.2 rec/s
[02:10:39] [INFO] 📊 Progress [65.2s]:
[02:10:39] [INFO] |-- 🐔 column 'description': 10/10 (100%) 0.2 rec/s
[02:10:39] [INFO] ✅ Async generation complete [65.3s]: 10 ok, 0 failed across 1 column(s)
[02:10:39] [INFO] 📊 Model usage summary:
[02:10:39] [INFO] |-- model: nvidia/nemotron-3-nano-omni-30b-a3b-reasoning
[02:10:39] [INFO] |-- tokens: input=3720, output=8321, reasoning=5305 (estimated), total=12041, tps=183
[02:10:39] [INFO] |-- reasoning token count estimated with tiktoken
[02:10:39] [INFO] |-- requests: success=10, failed=0, total=10, rpm=9
[02:10:39] [INFO] 📐 Measuring dataset column statistics:
[02:10:39] [INFO] |-- 📝 column: 'description'
[02:10:39] [INFO] |-- 🌱 column: 'uuid'
[02:10:39] [INFO] |-- 🌱 column: 'label'
[02:10:39] [INFO] |-- 🌱 column: 'base64_image'
| uuid | label | base64_image | description | |
|---|---|---|---|---|
| 0 | a3b1803c-83c6-4fe9-97fd-3f73b7b3e5d7 | 0 | iVBORw0KGgoAAAANSUhEUgAAAeQAAAIACAIAAADc8YinAA... | # Close-up Portrait of a Cat ## Main Subject ... |
| 1 | f3e1a162-40eb-461b-b395-67605599ab75 | 0 | iVBORw0KGgoAAAANSUhEUgAAAiQAAAIACAIAAAA9rOAHAA... | The image features a close-up of a fluffy, lon... |
| 2 | 1fa78530-ebc5-4e0f-860c-4706b8de0c82 | 0 | iVBORw0KGgoAAAANSUhEUgAAAqoAAAIACAIAAADFYNm1AA... | The image displays a close-up photograph of a ... |
| 3 | 8ad3c5c7-fa3b-44ce-a445-179ec62c0a74 | 0 | iVBORw0KGgoAAAANSUhEUgAAAwAAAAIACAIAAAC6lJxtAA... | ```markdown **Main Subject:** The central fo... |
| 4 | efc4e3b1-deb7-403c-824d-d4eb21de3bca | 0 | iVBORw0KGgoAAAANSUhEUgAAAqoAAAIACAIAAADFYNm1AA... | Here is a detailed description of the image co... |
──────────────────────────────────────── 🎨 Data Designer Dataset Profile ───────────────────────────────────────── Dataset Overview ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ number of records ┃ number of columns ┃ percent complete records ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ 10 │ 4 │ 100.0% │ └─────────────────────────────────┴─────────────────────────────────┴─────────────────────────────────────────────┘ 🌱 Seed-Dataset Columns ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ column name ┃ data type ┃ number unique values ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ uuid │ string │ 10 (100.0%) │ ├──────────────────────────────────┼──────────────────────────┼───────────────────────────────────────────────────┤ │ label │ int │ 1 (10.0%) │ ├──────────────────────────────────┼──────────────────────────┼───────────────────────────────────────────────────┤ │ base64_image │ string │ 10 (100.0%) │ └──────────────────────────────────┴──────────────────────────┴───────────────────────────────────────────────────┘ 📝 LLM-Text Columns ┏━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ ┃ ┃ ┃ prompt tokens ┃ completion tokens ┃ ┃ column name ┃ data type ┃ number unique values ┃ per record ┃ per record ┃ ┡━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ description │ string │ 10 (100.0%) │ 29.0 +/- 0.0 │ 268.5 +/- 73.4 │ └──────────────────┴───────────────┴──────────────────────────────┴─────────────────────┴─────────────────────────┘ ╭────────────────────────────────────────────────── Table Notes ──────────────────────────────────────────────────╮ │ │ │ 1. All token statistics are based on a sample of max(1000, len(dataset)) records. │ │ 2. Tokens are calculated using tiktoken's cl100k_base tokenizer. │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────
⏭️ Next Steps
Now that you've learned how to use visual context for image summarization in Data Designer, explore more:
-
Experiment with different vision models for specific image types
-
Try different prompt variations to generate specialized descriptions (e.g., technical details, key findings)
-
Combine image, audio, or video context with other column types after confirming your selected model supports those modalities
-
Apply this pattern to other vision tasks like image captioning, OCR validation, or visual question answering
-
Generating images with Data Designer