Skip to content

Commit

Permalink
fix app service deploy with service principal usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dantelmomsft committed Aug 27, 2024
1 parent d56f1f3 commit 0f72ee7
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/azure-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,15 @@ jobs:
with:
name: spring-boot-app
path: ./backend

- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: 'Deploy backend to Azure Web App'
uses: azure/webapps-deploy@v2
id: deploy-app
with:
app-name: ${{ vars.AZUREAPPSERVICE_APP_NAME }}
package: ./backend
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE}}
- name: logout
run: |
az logout
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. &lt;&lt;Are there exclusions for prescriptions?&gt;&gt;.
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

0 comments on commit 0f72ee7

Please sign in to comment.