Skip to content

Commit

Permalink
There will be no normal chat_with_pdf_custom_connection any more
Browse files Browse the repository at this point in the history
  • Loading branch information
crazygao committed Aug 22, 2023
1 parent 053bb01 commit 7eb2db4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/samples_flows_chat_chat_with_pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
working-directory: examples/flows/chat/chat-with-pdf
run: |
if [[ -e .env ]]; then
pf connection create --file .env --name chat_with_pdf_custom_connection
pf connection create --file .env --name azure_open_ai_connection
pf connection list
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
echo "env replacement"
sed -i -e "s/<your_AOAI_key>/$AOAI_API_KEY/g" -e "s/<your_AOAI_endpoint>/$AOAI_API_ENDPOINT/g" .env.example
mv .env.example .env
pf connection create --file .env --name chat_with_pdf_custom_connection
pf connection create --file .env --name azure_open_ai_connection
fi
- name: Azure Login
uses: azure/login@v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
working-directory: examples/tutorials/e2e-development
run: |
if [[ -e .env ]]; then
pf connection create --file .env --name chat_with_pdf_custom_connection
pf connection create --file .env --name azure_open_ai_connection
pf connection list
fi
Expand Down
3 changes: 2 additions & 1 deletion examples/flows/chat/chat-with-pdf/chat-with-pdf.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"source": [
"# create needed connection\n",
"from promptflow.entities import AzureOpenAIConnection\n",
"\n",
"try:\n",
" conn_name = \"azure_open_ai_connection\"\n",
" conn = pf.connections.get(name=conn_name)\n",
Expand Down Expand Up @@ -128,7 +129,7 @@
" \"CHUNK_OVERLAP\": 32,\n",
"}\n",
"\n",
"column_mapping={\n",
"column_mapping = {\n",
" \"question\": \"${data.question}\",\n",
" \"pdf_url\": \"${data.pdf_url}\",\n",
" \"chat_history\": \"${data.chat_history}\",\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def write_readme_workflow(readme_path, output_telemetry=Telemetry()):
ReadmeSteps.install_dev_dependencies()
ReadmeSteps.create_env()
if workflow_name.endswith("pdf"):
ReadmeSteps.env_create_aoai("chat_with_pdf_custom_connection")
ReadmeSteps.env_create_aoai("azure_open_ai_connection")
ReadmeSteps.create_run_yaml()
if (
workflow_name.endswith("flows_standard_basic_with_builtin_llm")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ steps:
echo "env replacement"
sed -i -e "s/<your_AOAI_key>/$AOAI_API_KEY/g" -e "s/<your_AOAI_endpoint>/$AOAI_API_ENDPOINT/g" .env.example
mv .env.example .env
pf connection create --file .env --name chat_with_pdf_custom_connection
pf connection create --file .env --name azure_open_ai_connection
fi
- name: Azure Login
uses: azure/login@v1
Expand Down

0 comments on commit 7eb2db4

Please sign in to comment.