Skip to content

Feature Request: Enable custom GREL expressions for combining multiple columns in plugin input #42

Open
@psmukhopadhyay

Description

@psmukhopadhyay

Description:
The plugin currently operates only on a single selected column. There is no built-in mechanism to allow combining the content of multiple columns using General Refine Expression Language (GREL). For example, it is not possible to use an expression like:
value + cells["OtherColumn"].value to construct the input for processing.

Proposed Enhancement:
Introduce a GREL Expression Input Box within the plugin interface to allow users to define custom expressions that can:
• Concatenate values from multiple columns.
• Prepend or append fixed prompt templates or schemas.
• Flexibly structure input before it is passed to the LLM or downstream processes.

Use Cases
1. Generating summaries by combining fields:
Concatenate title and abstract fields to create a summary prompt sent to an LLM provider:
cells["title"].value + " " + cells["abstract"].value
2. Adding schema or classification hints before column content:
Prepend a classification scheme or instruction to each row:
"Classify the following MCQ as simple, standard, complex, or very complex:\n\n" + value
This is especially useful when the prompt schema is long and repetitive, and would otherwise require manual re-entry in the "Text window".

Benefits
• Greater flexibility in data preparation and prompt engineering.
• Reusability of prompt templates across multiple columns or datasets.
• Enables more sophisticated workflows without needing to modify the dataset structure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions