The function definition should include chat argument since it's called with two arguments throughout rest of notebook (or chat argument needs to be deleted from callsites, not sure what right answer is)
Relevant log output
{
"name": "TypeError",
"message": "gemini_inference() takes 1 positional argument but 2 were given",
"stack": "---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[9], line 1
----> 1 gemini_inference(chat, \"hello world!\")
TypeError: gemini_inference() takes 1 positional argument but 2 were given"
}
Code of Conduct
[X] I agree to follow this project's Code of Conduct
File Name
generative-ai/gemini/use-cases/retrieval-augmented-generation/small_to_big_rag/small_to_big_rag.ipynb
What happened?
The function definition should include chat argument since it's called with two arguments throughout rest of notebook (or chat argument needs to be deleted from callsites, not sure what right answer is)
Relevant log output
Code of Conduct