Grading gives me 0% for lab, even though unittests are passed

My Name is Nick and I am doing the course on “Introduction to Rag models”

I am trying to post about the DeepLearningAI platform. However, when I select this as a category, I cannot submit this post. Literally none of the tags are allowed. Even when the system tells me I can use a particular tag, it won’t allow me to create the topic. I also cannot submit the post without a tag. Therefore I am having to submit this post in Introductions.

Has anyone come across this, and how do I actually submit a post under the DeepLearningAI category?

My problem is as follows…

I am doing the course depplearning.ai course Introduction to RAG Systems. I am struggling to submit the workbook for the first lab. I get graded at 0% even though the ‘unittest’ function indicates that my answers are correct. All cells in the notebook work fine. The error message is as follows;

There was a problem compiling the code from your notebook, please check that you saved before submitting. Details:
f-string: unmatched '[' (<unknown>, line 71)

It’s difficult to track this because only code cells appear to have line numbers in Jupyter notebooks. I have looked through all the f-strings but they are fine. I have also checked for errors in the downloaded notebook in Visual Studio, and all syntax is fine.

There currently seems to be a bug in the forum software that is preventing the expected use of the tags. I noticed it yesterday. It’s been reported. Hopefully it will be fixed soon.

= = = =

I’m not a mentor for the RAG course, but in general:

  • The grader tests your code using completely different test cases than those in the notebook.
  • Passing the tests in the notebook do not prove your code is error-free.
  • In some cases, the grader is extremely picky about the placement of closing parenthesis. There are several assignments where having a closing-paren floating on a line by itself will not be picked up by the grader, causing a syntax error.

Thanks for the info about the bug! I’ll try the forum again in a few hours time.

I’ll take another look at the parentheses. This could be it.

Cheerio

@Community-Team, there appears to be a problem with the forum software regarding the use of tags. This has been observed since yesterday in several courses.

Hello @NickRiches Please check now. You must add a platform tag and a week/module tag. The issue should be fixed by now.

Let me know if it works now.

Thanks

Hello @NickRiches ,

Were you able to add your post?

Yes, thanks. It’s here; Assignment grade 0 even though unnittest works fine and output is as expected3 - #6 by NickRiches