Description
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.