Retrieval Augmented Generation (RAG) - Module 3 Assignment

Problem:

My code return output as shown in “Expected Results” but the unittest function return Failed test case with its output different than the Expected Output.

Topic:

5 - Reranking Exercise 5

Graded Cell:

25

{mentor edit: code removed}

Result of my code

Expected Results

Unit Test Result:

Hello @rinr ,
Everything in your code looks good except the response has a minor error.
Instead to call: response = … (query = rerank_query, …) you should pass (query = query, …). Hope this helps.
Best Regards.

1 Like

Please do not share your code for the assignments on the Forum.
That is not allowed by the Code of Conduct.

Posting the test results and error messages is usually sufficient to identify the problem.

1 Like

Thanks but I remember the comment said to pass “rerank_query”. Will have to recheck but thanks anyway!

Sorry, didn’t know that. Will do next time and thanks for the remove.