Skip to content

Bug: source_prompt loaded incorrectly in evaluation script (string indexed as list) #5

Description

@marghovo

In the evaluation script, the source prompt is loaded with:

src_prompt = data_dict["source_prompt"][0].replace("[", "").replace("]", "")

However, source_prompt is a string, not a list. Indexing with [0] on a string
returns only the first character (e.g., "A" instead of the full prompt).

Fix:

src_prompt = data_dict["source_prompt"].replace("[", "").replace("]", "")

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