Module 2: Book Tracker Exercise 5. Grader Error? 🤔 Or is it me ... thx

I’m working through the book tracker assignment at the end of Module 2.

In the final exercise - Exercise 5: The LLM to the Rescue! - I have all the code working in my local environment with no errors.

The issue is your grader is throwing this error I don’t understand:


Failed test case: Your prompt does not include 1 or more of the expected information
.
Grader expected: 
A prompt with mention of:
person_name: "Arthur"
book_name: "To Kill a Mockingbird"
book_author: "Harper Lee"
due_date: "16 November 2024"



You got: 

Please write a polite email to Arthur Dent, reminding them to return
the book To Kill a Mockingbird by Harper Lee.  The book was due on 16 November 2025.

Looks like I made a prompt that mentioned all four pieces of data.

The only difference I can see is that the grader is expecting “Arthur” and I’m providing “Arthur Dent”, the full name.

Is that it? or am I brain fading on something else that is obvious here.

BTW I naturally expected this exercise would want us to actually call the LLM and get the response. :thinking:

Hi @vongoh, welcome! It looks like the grader expected the year of the due date to be 2024, while you got 2025.

Hi @vongoh,

Just adding to what Boryana mentioned above:

This tells me that you are hard-coding these values into the prompt, instead of using the variables within it, which are:

As for this, this part is below the exercise. DO NOT try to call the LLM within this exercise.

Best,
Mubsi

Right, I manually reassigned those variables into my code and got creative with the date, when I had already loaded them in the Jupyter interface. Thanks Mubsi :folded_hands:t2: