M3 Graded Lab JSON Decode Error

Hi. Please, have some issues with reflection an rewrite prompt. All tests passed but failing with the output. Here is my prompt : :backhand_index_pointing_right: user_prompt = f"“”
You are a reviewer and rewriter.

report :
{report}
Assess the attached report against this quality rubric. Each item should recieve a score from 1 to 5. 
1- Strengths
2- Limitations
3- Suggestions
4- Opportunities
5- Valid JSON output
Return STRICT JSON with two fields:
{{ 
    "reflection": "<text>", 
    "revised_report": "<text>" }}
"""

Hi there,

For debuging purpose, you can create an additional cell and print out the response before performing the test.

And some other tips you could check like

  • the response text can have some unexpected characters (I guess) like space character at the end or beginning, which you can strip it.
  • Is the format correct, is the bracket pair correct and does json format correct?

And as suggested in the exception text: You can adjust the prompt and assess output manually to meet the requirement.

1 Like

Be sure you delete any added cells before you have your assignment graded.