Skip to content

Support multiple user messages in preprocessing dataset #21

Description

@inclinedadarsh

Currently the dataset processing service expects only one user message, however there should be support for multiple user messages.

However, first this needs testing, as the service might already support multiple user messages.

Tasks:

  • Test for multiple user messages
  • If not above, the implement the feature

Note: This feature is also being tracked on the frontend at gemma-facet/frontend-ui#9

Activity

  1. supreme-gg-gg commented on Jul 18, 2025

    @supreme-gg-gg
    Contributor

    Ah interesting I noted the backend does not support this I believe because it just finds {role}_message for user or assistant or system instead of having like user_message_1 (which is partially the method I used for multiple images).

    Should be a simple fix but I worry if this will conflict with changes in preprocessing in #22

  2. inclinedadarsh commented on Jul 19, 2025

    @inclinedadarsh
    ContributorAuthor

    After checking the code changes in #22, it seems it will conflict, at least creating a merge conflict. I guess we should implement this later, after #22 is merged.

    If this is the case, we can actually merge gemma-facet/frontend-ui#11 before the demo?

  3. supreme-gg-gg commented on Jul 19, 2025

    @supreme-gg-gg
    Contributor

    Thanks for the spike, I'll try to merge #22 ASAP since it's only testing left!

  4. supreme-gg-gg commented on Aug 12, 2025

    @supreme-gg-gg
    Contributor

    Change this config:

    {
      "config": {
        "vision_enabled": true,
        "field_mappings": {
          "user_field": {
            "type": "template",
            "value": "Compare these images and tell me the differences."
          },
          "assistant_field": {
            "type": "column",
            "value": "comparison"
          },
          "image_field_1": {
            "type": "image",
            "value": "image1"
          },
          "image_field_2": {
            "type": "image",
            "value": "image2"
          },
          "image_field_3": {
            "type": "image",
            "value": "image3"
          }
        }
      }
    }
    1. Make user_field a list of type either image, column, or template and remove image_field_x
    2. First validate if the response require only one "role": "user" message or multiple
  5. added
    datasetsDatasets related features
    and removed on Aug 14, 2025
  6. changed the title [-][feature] Support multiple user messages in preprocessing dataset[/-] [+]Support multiple user messages in preprocessing dataset[/+] on Aug 14, 2025
  7. supreme-gg-gg commented on Aug 17, 2025

    @supreme-gg-gg
    Contributor

    Closed as in #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

datasetsDatasets related features

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions