C1M2- Lab 2 Graded Assignment

Hello Everyone,
i am looking some help here, in below

Programming Assignment: Implementing retriever functions in a RAG system

why my test cases are failing, even after matching with expected output.

1 Like

Dear @BG-2,

Welcome to the community!

Have you hardcoded anything?

Recalculate the correct top_k_indices for "What are the recent news about GDP?" from the dataset used in tests.


Keep Learning AI with DeepLearning.AI - Girijesh

@Girijesh Thanks for responding.
I have not used any hard coded the parameters.

the below function

-------
# GRADED CELL 

def semantic_search_retrieve(query, top_k=5):
   # mentor edit: code removed
-------------------
semantic_search_retrieve("What are the recent news about GDP?")

i am not able track down where am missing

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

There is more than one test of the retrieve() function. Your code is not passing one of them.

1 Like