There is an indentation (space) error in the screenshot you shared..
Notice the
from utils import (
chatwidget
has extra spaces between utils and import and import and (, remove that extra spaces and only keep single space between words utils and import and no space between import and (
together.ai has deprecated a lot of models in the past days resulting in concurrent issues with labs of RAG courses.
Lab assignment 3 to 5 and all ungraded labs are updated now.
You need to Restore original version, to get the updated notebook.
I also would recommend to first delete the old file, and restore original version, so any cache issue is not encountered when running codes again.
Courses, labs are created with multiple channels, so labs gets affected when any changes.made at one end and can take multiple attempts to resolve issue.
I have successfully completed the Module 4 assignment; however, an issue remains unresolved but I do not mind. I applied the same methodology to Module 5, but unfortunately, I am encountering the same difficulty.