Skip to content

Syntax Error when creating nested list #1

@KonneMu

Description

@KonneMu

Hi Elinteger! Great work and thanks again from the BVL!

We get a little error when runnning your code, I think its no big issue and we will handle it, but maybe you got a quick answer for this:

WARNING:root:Error type: SyntaxError, Message: closing parenthesis ')' does

not match opening parenthesis '[' on line 1 (<unknown>, line 4)

WARNING:root:Not fully correctly formatted output by LLM. Check prompt,

value has been lost! This was the LLMs answer: ["Cereal", "/", -2, "/",

"Category"],

["Rice", "Rice", 0.1, 0.01, "Check again."],

["Corn", "Maize/corn", 0.1, 0.01, "No Note."],

["Lentils", "Lentils", 0.1, 0.01, "No Note."])

and this the cleaned answer: [["Cereal", "/", -2, "/", "Category"],

["Rice", "Rice", 0.1, 0.01, "Check again."],

["Corn", "Maize/corn", 0.1, 0.01, "No Note."],

["Lentils", "Lentils", 0.1, 0.01, "No Note."])]

I think the error is pretty clear, the LLM is producing a uncleanly formatted nested list out of the provided data. Probably one would have to tighten the rules for producing these lists?

All the best
Konstantin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions