-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Evaluate() function gets unexpected arguments #944
Comments
seems like you are using an old version of ragas. Try upgrade your ragas package [ pip3 install ragas==0.1.7 ] should resolve your problem . |
thanks to @KaimingFanshi for helping @nelagamy ❤️ |
I'm working on openai==0.28.1, and for that I need ragas<=0.0.18, But ragas is giving the above discussed error. And I can't just upgrade the ragas, since I can only work with lower version of openai. Any solutions for this.... |
This is the code:
result = evaluate(
amnesty_qa["eval"], metrics=metrics, llm=azure_model, embeddings=azure_embeddings
)
This is the error:
{
"name": "TypeError",
"message": "evaluate() got an unexpected keyword argument 'llm'",
"stack": "---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[27], line 1
----> 1 result = evaluate(
2 amnesty_qa["eval"], metrics=metrics, llm=azure_model, embeddings=azure_embeddings
3 )
5 result
TypeError: evaluate() got an unexpected keyword argument 'llm'"
}
The text was updated successfully, but these errors were encountered: