-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix app service deploy with service principal usage
- Loading branch information
1 parent
d56f1f3
commit 0f72ee7
Showing
2 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
...esources/semantickernel/Plugins/RAG/AnswerConversation/answerConversationNoFS.prompt.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: AnswerConversation | ||
description: Answer a chat conversation question based on the provided sources. | ||
template: | | ||
<message role="system"> | ||
You are an intelligent assistant helping Contoso Inc employees with their healthcare plan questions and employee handbook questions. | ||
Use 'you' to refer to the individual asking the questions even if they ask with 'I'. | ||
Answer the following question using only the sources provided below. | ||
For tabular information return it as an html table. Do not return markdown format. | ||
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]. | ||
If you cannot answer using the sources below, say you don't know. | ||
{{#if suggestions}} | ||
After answering question, also generate three very brief follow-up questions that the user would likely ask next. | ||
Use double angle brackets to reference the questions, e.g. <<Are there exclusions for prescriptions?>>. | ||
Try not to repeat questions that have already been asked. | ||
Only generate questions and do not generate any text before or after the questions, such as 'Next Questions'. | ||
{{/if}} | ||
Sources: | ||
{{#each sources}} | ||
{{sourceName}}: {{sourceContent}} | ||
{{/each}} | ||
</message> | ||
{{#each conversation}} | ||
<message role="{{role}}">{{content}}</message> | ||
{{/each}} | ||
<message role="user"> | ||
Question: {{input}} | ||
</message> | ||
template_format: handlebars | ||
# Allow calling getSourceName and getSourceContent on the sources | ||
prompt_template_options: [ ALLOW_CONTEXT_VARIABLE_METHOD_CALLS_UNSAFE ] | ||
input_variables: | ||
- name: input | ||
description: Question to answer | ||
is_required: true | ||
- name: sources | ||
description: Information used to answer the question | ||
is_required: true | ||
- name: conversation | ||
description: Chat history | ||
is_required: true | ||
- name: suggestions | ||
description: Whether to suggest follow-up questions | ||
type: boolean | ||
is_required: true | ||
execution_settings: | ||
default: | ||
max_tokens: 1024 | ||
temperature: 0.2 | ||
top_p: 1 | ||
presence_penalty: 0.0 | ||
frequency_penalty: 0.0 |