You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,14 +52,14 @@ You can run this repo virtually by using GitHub Codespaces or VS Code Remote Con
52
52
1. Create a new folder and switch to it in the terminal
53
53
1. Run `azd auth login`
54
54
1. Run `azd init -t azure-search-openai-demo`
55
-
* For the target location, the regions that currently support the models used in this sample are **East US** or **South Central US**. For an up-to-date list of regions and models, check [here](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/concepts/models)
56
55
* note that this command will initialize a git repository and you do not need to clone this repository
57
56
58
57
#### Starting from scratch:
59
58
60
59
Execute the following command, if you don't have any pre-existing Azure services and want to start from a fresh deployment.
61
60
62
61
1. Run `azd up` - This will provision Azure resources and deploy this sample to those resources, including building the search index based on the files found in the `./data` folder.
62
+
* For the target location, the regions that currently support the models used in this sample are **East US**, **France Central**, **South Central US**, **UK South**, and **West Europe**. For an up-to-date list of regions and models, check [here](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/concepts/models)
63
63
1. After the application has been successfully deployed you will see a URL printed to the console. Click that URL to interact with the application in your browser.
Copy file name to clipboardExpand all lines: app/backend/approaches/chatreadretrieveread.py
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
fromtypingimportAny, Sequence
2
+
1
3
importopenai
2
4
fromazure.search.documentsimportSearchClient
3
5
fromazure.search.documents.modelsimportQueryType
@@ -12,7 +14,7 @@ class ChatReadRetrieveReadApproach(Approach):
12
14
Assistant helps the company employees with their healthcare plan questions, and questions about the employee handbook. Be brief in your answers.
13
15
Answer ONLY with the facts listed in the list of sources below. If there isn't enough information below, say you don't know. Do not generate answers that don't use the sources below. If asking a clarifying question to the user would help, ask the question.
14
16
For tabular information return it as an html table. Do not return markdown format.
15
-
Each source has a name followed by colon and the actual information, always include the source name for each fact you use in the response. Use square brakets to reference the source, e.g. [info1.txt]. Don't combine sources, list each source separately, e.g. [info1.txt][info2.pdf].
17
+
Each source has a name followed by colon and the actual information, always include the source name for each fact you use in the response. Use square brackets to reference the source, e.g. [info1.txt]. Don't combine sources, list each source separately, e.g. [info1.txt][info2.pdf].
0 commit comments