Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Azure OpenAI in LLM RAG eval notebook #10527

Merged
merged 2 commits into from Nov 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 15 additions & 2 deletions docs/source/llms/llm-evaluate/notebooks/rag-evaluation.ipynb
Expand Up @@ -38,7 +38,7 @@
}
},
"source": [
"Set OpenAI Key"
"Set OpenAI (or Azure OpenAI) environment variables"
]
},
{
Expand All @@ -58,7 +58,13 @@
},
"outputs": [],
"source": [
"os.environ[\"OPENAI_API_KEY\"] = \"REDACTED\""
"os.environ[\"OPENAI_API_KEY\"] = \"REDACTED\"\n",
"\n",
"# If using Azure OpenAI\n",
"# os.environ[\"OPENAI_API_TYPE\"] = \"azure\"\n",
"# os.environ[\"OPENAI_API_VERSION\"] = \"2023-05-15\"\n",
"# os.environ[\"OPENAI_API_KEY\"] = \"https://<>.<>.<>.com\"\n",
"# os.environ[\"OPENAI_DEPLOYMENT_NAME\"] = \"deployment-name\""
]
},
{
Expand Down Expand Up @@ -214,6 +220,13 @@
" return answer"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {
Expand Down