Image understanding

Updated at:

The image understanding operator uses a multimodal model to perform semantic analysis on input images and generate descriptive text. This topic describes how to configure the image understanding operator.

Prerequisites

  • The workflow feature is available only after you purchase the unstructured data feature for the current instance.

  • You have created a workflow. For details, see or Create and Manage a Workflow.

Permissions

In a Basic project, project administrators, developers, analysts, and custom project roles with the Dataset-Usage permission can use any dataset in the project for the operator's input and output.

Supported file formats

The image understanding operator supports the following file formats: jpg, png, bmp, and webp.

Procedure

  1. On the Dataphin homepage, navigate to R&D > Data Development.

  2. On the Develop page, select a Project.

  3. In the left-side navigation pane, choose Data Processing > Workflow. Click your target workflow from the Workflow list to open the canvas. From the Operator Library on the left, drag the Image Understanding operator to the canvas. In the Image Understanding panel on the right, configure the following parameters.

    Parameter

    Description

    Step name

    Enter a name for the operator. The name can be up to 256 characters long.

    Input configuration

    Dataset

    Select the dataset to process. You can select only a hybrid dataset. After you select a dataset, you must also select a Version. By default, the system uses the earliest version of the dataset.

    If this operator is a downstream component of another operator, the dataset selected here is typically the same as the output dataset of the upstream operator.

    Input field

    Select the source field in the input dataset that stores the URL of the image to process. You can select only fields for which the Is URL parameter is set to Yes.

    Filter (Optional)

    Use SQL syntax and enter only the filter conditions that follow the WHERE clause. System global variables, such as ${bizdate}, are supported.

    Model configuration

    Model

    Select the model. You can select only a model that is Enabled and whose type includes Vision (Images and Videos) in Intelligent application management > Model configuration.

    Note
    • Only models compatible with the OpenAI protocol can be called.

    • For the pricing factors of system models, see Built-in Models Supported by Intelligent Application.

    • If you have purchased an advanced license package for your own models, no credits are deducted. Otherwise, a billing factor of 0.2x is applied.

    Prompt

    Enter a prompt, which serves as the instruction for the large model. The prompt defines the task, sets the model's role, and specifies the output format to guide the model toward generating the desired results. The default value is Please provide a detailed description of this image. You can drag the lower-right corner of the text box to resize it.

    Multi-column output (Optional)

    This feature is disabled by default. When enabled, the system automatically appends output format constraints to the end of the prompt. This ensures that the model always generates a response in the specified JSON format. To avoid conflicts with system constraints, do not include any output format requirements in your prompt.

    When enabled, a list of multi-column output fields is displayed. You can manage the fields in the following ways:

    • Add field: Click to open the Add Field dialog box. Manually configure the Name, Type, Description, and Example for the field, then click OK to add a new field to the list.

    • Import JSON: Click to open a dialog box where you can directly enter JSON content. Existing fields in the list are automatically populated into the JSON, and you can edit it as needed. After you confirm the content, click OK.

    • Delete field: Click the Delete icon for a field to remove the corresponding row from the list.

    Maximum number of tokens (Optional)

    Sets the maximum number of tokens for the model's output. If the output exceeds this limit, it is truncated. The default is 4,096, and this parameter is optional.

    Web search, Deep thinking (Optional)

    These features are disabled by default but can be enabled manually. Deep Thinking can be enabled only for models that support Thinking mode selection in Intelligent application > Model call configuration.

    Output configuration

    Dataset

    You can select either the source dataset or an other dataset. If the metadata table of the source dataset does not have a primary key, the output dataset defaults to other dataset.

    When you select other dataset, you must also specify a hybrid dataset and its Version as the output dataset. By default, the system uses the earliest version of the dataset. You can also select other versions of the source dataset.

    When you select source dataset, the operator writes the generated metadata to the metadata table of the source dataset's corresponding version.

    Load policy

    If the metadata table of the selected output dataset contains a primary key, Update on primary key conflict is selected by default. If no primary key exists, Append data is selected by default.

    • Append data: Appends new data directly to the target table. A primary key or constraint conflict causes an error.

    • Update on primary key conflict: If a record with the same primary key exists, the system deletes the existing record before inserting the new one.

    • Overwrite: Deletes all existing data in the target table before writing the new data.

    Note

    When source dataset is selected as the output dataset, the only supported load policy is Update on primary key conflict.

    Field mapping

    If multi-column output is disabled, the operator outputs only the image_content field. If enabled, the operator outputs the fields configured in the multi-column output list.

    By default, the operator's output fields are mapped to fields with the same names in the output dataset. You can also manually select target fields for custom mapping. In addition, you can map pass-through fields from the source dataset to the target dataset. You can manage field mappings in the following ways:

    • Add output field: Click to add a new, empty field mapping row. This feature is available only when Other Dataset is selected as the output dataset.

    • Batch mapping: Click to choose between manual batch mapping, same-name mapping, or same-row mapping. This feature is available only when Other Dataset is selected as the output dataset.

    • Delete mapping: Mappings for the image_content field and fields from the multi-column output list cannot be deleted here. When a field is deleted from the multi-column output list, its corresponding mapping is also deleted. For output fields that you added manually, you can click the Delete icon to remove the corresponding mapping row.

  4. After you complete the configuration, click Save in the toolbar at the top of the canvas.

    After configuring an operator, you can build out the workflow by adding upstream or downstream operators.