Skip to content

Commit 0f72ee7

Browse files
committed
fix app service deploy with service principal usage
1 parent d56f1f3 commit 0f72ee7

File tree

2 files changed

+62
-2
lines changed

2 files changed

+62
-2
lines changed

.github/workflows/azure-dev.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,15 @@ jobs:
9090
with:
9191
name: spring-boot-app
9292
path: ./backend
93-
93+
- uses: azure/login@v1
94+
with:
95+
creds: ${{ secrets.AZURE_CREDENTIALS }}
9496
- name: 'Deploy backend to Azure Web App'
9597
uses: azure/webapps-deploy@v2
9698
id: deploy-app
9799
with:
98100
app-name: ${{ vars.AZUREAPPSERVICE_APP_NAME }}
99101
package: ./backend
100-
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE}}
102+
- name: logout
103+
run: |
104+
az logout
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: AnswerConversation
2+
description: Answer a chat conversation question based on the provided sources.
3+
template: |
4+
<message role="system">
5+
You are an intelligent assistant helping Contoso Inc employees with their healthcare plan questions and employee handbook questions.
6+
Use 'you' to refer to the individual asking the questions even if they ask with 'I'.
7+
Answer the following question using only the sources provided below.
8+
For tabular information return it as an html table. Do not return markdown format.
9+
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
10+
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].
11+
If you cannot answer using the sources below, say you don't know.
12+
13+
{{#if suggestions}}
14+
After answering question, also generate three very brief follow-up questions that the user would likely ask next.
15+
Use double angle brackets to reference the questions, e.g. &lt;&lt;Are there exclusions for prescriptions?&gt;&gt;.
16+
Try not to repeat questions that have already been asked.
17+
Only generate questions and do not generate any text before or after the questions, such as 'Next Questions'.
18+
{{/if}}
19+
20+
Sources:
21+
{{#each sources}}
22+
{{sourceName}}: {{sourceContent}}
23+
{{/each}}
24+
</message>
25+
26+
{{#each conversation}}
27+
<message role="{{role}}">{{content}}</message>
28+
{{/each}}
29+
30+
<message role="user">
31+
Question: {{input}}
32+
</message>
33+
template_format: handlebars
34+
# Allow calling getSourceName and getSourceContent on the sources
35+
prompt_template_options: [ ALLOW_CONTEXT_VARIABLE_METHOD_CALLS_UNSAFE ]
36+
input_variables:
37+
- name: input
38+
description: Question to answer
39+
is_required: true
40+
- name: sources
41+
description: Information used to answer the question
42+
is_required: true
43+
- name: conversation
44+
description: Chat history
45+
is_required: true
46+
- name: suggestions
47+
description: Whether to suggest follow-up questions
48+
type: boolean
49+
is_required: true
50+
execution_settings:
51+
default:
52+
max_tokens: 1024
53+
temperature: 0.2
54+
top_p: 1
55+
presence_penalty: 0.0
56+
frequency_penalty: 0.0

0 commit comments

Comments
 (0)