Hi. Please, have some issues with reflection an rewrite prompt. All tests passed but failing with the output. Here is my prompt : 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>" }}
"""
I faced the same problem. I used the print command before handling the result with json lib in the function definition and I could see that in my case there were some break-lines characters in the response. So I adjusted the prompt to remove those break-lines and it worked.