-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[Question]: How can I run a correctness evaluator using Azure OpenAI? #17861
Comments
To run a correctness evaluator using Azure OpenAI, you can adapt the example provided for the regular OpenAI instance by using the
This setup uses the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
The example using openai in the documentation does not require using an engine as a parameter. What do you recommend I put in here, as it is required in your example. |
For the "engine" parameter in the llm = AzureOpenAI(
engine="your-deployment-name", # Use your actual deployment name here
model="gpt-35-turbo-16k",
azure_endpoint="https://<your-resource-name>.openai.azure.com/",
api_key="<your-api-key>",
api_version="2023-07-01-preview",
) The "engine" is essentially the name of the model deployment you have configured in Azure [1]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Question Validation
Question
The documentation only states how to do this using a regular OpenAI instance, but how can I recreate this using Azure OpenAI?
The text was updated successfully, but these errors were encountered: