Hi, I am trying to set-up evaluations for my RAG system using Phoenix and be able to trace them on the Phoenix UI. This is the notebook I am using for reference: evaluate_rag.ipynb When I try to call the OpenAIModel from phoenix.experimental.evals using the necessary parameters, I keep getting this error:
If I don't provide the api_version and api_endpoint, I get the error "API Key Invalid". These same parameters work fine for me when I use them to create AzureOpenAI model from llama_index.llms
Hey Samantha F. - the model names for Azure depend on your deployment. They don't have the same aliases as the public OpenAI. One way to check for this is to see what the params are on the Azure OpenAI playground
You can find the name here in the Azure console
I tried using the model names specific to the my deployment too. Gives the same error
Hmm, weird, I struggled with this too just from the OpenAI deployment page - the only way I got it to work was by copying the values from the playground explicitly
Oh actually I figured out what's wrong. Sorry for the trouble and thanks for the quick response!
Using the engine name specific to my deployment worked, instead of using the model name
The subtle differences between Azure and public OpenAI 馃う
Quick question, I am facing another error which seems to be coming from the incorrect fallback values being returned by the run_evals function as can be seen in the attached picture. I saw this issue on github briefly addressed how to resolve this. Just want to check if this is the only way to do it right now or this can be resolved differently?
Thank you! Please keep me updated
Hey Samantha F., Phoenix 3.0.2 is out with a fix to the above issue.
Hey Samantha F., thanks for the report. It's difficult to tell what's going on from the stacktrace alone. Are you running Phoenix evals in a background thread?
