-
Hello, If you can kindly help with the issue I am seeing. Giskard_Testing\giskard\rag\metrics\correctness.py", line 77, in call I am using as seen above, AzureChatOpenAI as LLM.I see the same error even if I use ChatOpenAI. Can you kindly please help on probable solution to this or where am I going wrong. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Hi, did you follow the instructions from this page to setup your LLM client? Also, to better understand your issue, can you provide the code you ran to get this error? |
Beta Was this translation helpful? Give feedback.
-
You get this error because you pass an instance of
Since you configured the azure env variable properly, this should work. Another possibility is to change the default model used by giskard library with |
Beta Was this translation helpful? Give feedback.
To compute the ragas metrics, you need to define an
answer_fn
that returns an instance ofAgentAnswer
. Theretrieved_document
argument from theevaluate
function is deprecated, but you can pass a list ofAgentAnswer
in place of a list of strings as the answers. I will update the docs as it is still mentioned there.Here is an example you can follow: