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
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -266,6 +266,7 @@ You can find extensive documentation in the [docs](docs/README.md) folder:
266
266
267
267
### Resources
268
268
269
+
- [📖 Docs: Get started using the chat with your data sample](https://learn.microsoft.com/azure/developer/python/get-started-app-chat-template?toc=%2Fazure%2Fdeveloper%2Fai%2Ftoc.json&bc=%2Fazure%2Fdeveloper%2Fai%2Fbreadcrumb%2Ftoc.json&tabs=github-codespaces)
269
270
- [📖 Blog: Revolutionize your Enterprise Data with ChatGPT: Next-gen Apps w/ Azure OpenAI and AI Search](https://techcommunity.microsoft.com/blog/azure-ai-services-blog/revolutionize-your-enterprise-data-with-chatgpt-next-gen-apps-w-azure-openai-and/3762087)
270
271
- [📖 Docs: Azure AI Search](https://learn.microsoft.com/azure/search/search-what-is-azure-search)
{"role": "user", "content": "How did crypto do last year?"},
14
-
{"role": "assistant", "content": "Summarize Cryptocurrency Market Dynamics from last year"},
15
-
{"role": "user", "content": "What are my health plans?"},
16
-
{"role": "assistant", "content": "Show available health plans"},
17
-
]
18
-
NO_RESPONSE="0"
19
-
20
-
follow_up_questions_prompt_content="""Generate 3 very brief follow-up questions that the user would likely ask next.
21
-
Enclose the follow-up questions in double angle brackets. Example:
22
-
<<Are there exclusions for prescriptions?>>
23
-
<<Which pharmacies can be ordered from?>>
24
-
<<What is the limit for over-the-counter medication?>>
25
-
Do no repeat questions that have already been asked.
26
-
Make sure the last question ends with ">>".
27
-
"""
28
12
29
-
query_prompt_template="""Below is a history of the conversation so far, and a new question asked by the user that needs to be answered by searching in a knowledge base.
30
-
You have access to Azure AI Search index with 100's of documents.
31
-
Generate a search query based on the conversation and the new question.
32
-
Do not include cited source filenames and document names e.g info.txt or doc.pdf in the search query terms.
33
-
Do not include any text inside [] or <<>> in the search query terms.
34
-
Do not include any special characters like '+'.
35
-
If the question is not in English, translate the question to English before generating the search query.
36
-
If you cannot generate a search query, return just the number 0.
return"""Assistant helps the company employees with their healthcare plan questions, and questions about the employee handbook. Be brief in your answers.
59
-
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.
60
-
If the question is not in English, answer in the language used in the question.
61
-
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, for example [info1.txt]. Don't combine sources, list each source separately, for example [info1.txt][info2.pdf].
0 commit comments