Lanchain with gemini and mongodb

i build chatbot using langchain with mongodb and llm gemini.
image
This is the code of retrieval
image
when i prompt the question in terminal this shows this error


i try many solutions from internet but dont able to debug.