Skip to content

Commit 09be6c1

Browse files
feat: Added templateName tag on rg (#597)
* Added templateName tag on rg * Updated tag name typo
1 parent 22125fc commit 09be6c1

File tree

2 files changed

+47
-27
lines changed

2 files changed

+47
-27
lines changed

infra/main.bicep

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,16 @@ var functionAppStreamTextSystemPrompt = '''The currently selected client's name
121121
If no data is found, respond with 'No data found for that client.' Remove any client identifiers from the final response.
122122
Always send clientId as '{client_id}'.'''
123123

124+
// ========== Resource Group Tag ========== //
125+
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
126+
name: 'default'
127+
properties: {
128+
tags: {
129+
TemplateName: 'Client Advisor'
130+
}
131+
}
132+
}
133+
124134
// ========== Managed Identity ========== //
125135
module managedIdentityModule 'deploy_managed_identity.bicep' = {
126136
name: 'deploy_managed_identity'

infra/main.json

Lines changed: 37 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"metadata": {
55
"_generator": {
66
"name": "bicep",
7-
"version": "0.36.1.42791",
8-
"templateHash": "2947534626644546773"
7+
"version": "0.36.177.2456",
8+
"templateHash": "1860841716622591379"
99
}
1010
},
1111
"parameters": {
@@ -362,11 +362,21 @@
362362
"uniqueId": "[toLower(uniqueString(parameters('environmentName'), subscription().id, variables('solutionLocation')))]",
363363
"solutionPrefix": "[format('ca{0}', padLeft(take(variables('uniqueId'), 12), 12, '0'))]",
364364
"abbrs": "[variables('$fxv#0')]",
365-
"functionAppSqlPrompt": "Generate a valid T-SQL query to find {query} for tables and columns provided below:\n 1. Table: Clients\n Columns: ClientId, Client, Email, Occupation, MaritalStatus, Dependents\n 2. Table: InvestmentGoals\n Columns: ClientId, InvestmentGoal\n 3. Table: Assets\n Columns: ClientId, AssetDate, Investment, ROI, Revenue, AssetType\n 4. Table: ClientSummaries\n Columns: ClientId, ClientSummary\n 5. Table: InvestmentGoalsDetails\n Columns: ClientId, InvestmentGoal, TargetAmount, Contribution\n 6. Table: Retirement\n Columns: ClientId, StatusDate, RetirementGoalProgress, EducationGoalProgress\n 7. Table: ClientMeetings\n Columns: ClientId, ConversationId, Title, StartTime, EndTime, Advisor, ClientEmail\n Always use the Investment column from the Assets table as the value.\n Assets table has snapshots of values by date. Do not add numbers across different dates for total values.\n Do not use client name in filters.\n Do not include assets values unless asked for.\n ALWAYS use ClientId = {clientid} in the query filter.\n ALWAYS select Client Name (Column: Client) in the query.\n Query filters are IMPORTANT. Add filters like AssetType, AssetDate, etc. if needed.\n When answering scheduling or time-based meeting questions, always use the StartTime column from ClientMeetings table. Use correct logic to return the most recent past meeting (last/previous) or the nearest future meeting (next/upcoming), and ensure only StartTime column is used for meeting timing comparisons.\n Only return the generated SQL query. Do not return anything else.",
366-
"functionAppCallTranscriptSystemPrompt": "You are an assistant who supports wealth advisors in preparing for client meetings. \n You have access to the client’s past meeting call transcripts. \n When answering questions, especially summary requests, provide a detailed and structured response that includes key topics, concerns, decisions, and trends. \n If no data is available, state 'No relevant data found for previous meetings.",
367-
"functionAppStreamTextSystemPrompt": "The currently selected client's name is '{SelectedClientName}'. Treat any case-insensitive or partial mention as referring to this client.\n If the user mentions no name, assume they are asking about '{SelectedClientName}'.\n If the user references a name that clearly differs from '{SelectedClientName}' or comparing with other clients, respond only with: 'Please only ask questions about the selected client or select another client.' Otherwise, provide thorough answers for every question using only data from SQL or call transcripts.'\n If no data is found, respond with 'No data found for that client.' Remove any client identifiers from the final response.\n Always send clientId as '{client_id}'."
365+
"functionAppSqlPrompt": "Generate a valid T-SQL query to find {query} for tables and columns provided below:\r\n 1. Table: Clients\r\n Columns: ClientId, Client, Email, Occupation, MaritalStatus, Dependents\r\n 2. Table: InvestmentGoals\r\n Columns: ClientId, InvestmentGoal\r\n 3. Table: Assets\r\n Columns: ClientId, AssetDate, Investment, ROI, Revenue, AssetType\r\n 4. Table: ClientSummaries\r\n Columns: ClientId, ClientSummary\r\n 5. Table: InvestmentGoalsDetails\r\n Columns: ClientId, InvestmentGoal, TargetAmount, Contribution\r\n 6. Table: Retirement\r\n Columns: ClientId, StatusDate, RetirementGoalProgress, EducationGoalProgress\r\n 7. Table: ClientMeetings\r\n Columns: ClientId, ConversationId, Title, StartTime, EndTime, Advisor, ClientEmail\r\n Always use the Investment column from the Assets table as the value.\r\n Assets table has snapshots of values by date. Do not add numbers across different dates for total values.\r\n Do not use client name in filters.\r\n Do not include assets values unless asked for.\r\n ALWAYS use ClientId = {clientid} in the query filter.\r\n ALWAYS select Client Name (Column: Client) in the query.\r\n Query filters are IMPORTANT. Add filters like AssetType, AssetDate, etc. if needed.\r\n When answering scheduling or time-based meeting questions, always use the StartTime column from ClientMeetings table. Use correct logic to return the most recent past meeting (last/previous) or the nearest future meeting (next/upcoming), and ensure only StartTime column is used for meeting timing comparisons.\r\n Only return the generated SQL query. Do not return anything else.",
366+
"functionAppCallTranscriptSystemPrompt": "You are an assistant who supports wealth advisors in preparing for client meetings. \r\n You have access to the client’s past meeting call transcripts. \r\n When answering questions, especially summary requests, provide a detailed and structured response that includes key topics, concerns, decisions, and trends. \r\n If no data is available, state 'No relevant data found for previous meetings.",
367+
"functionAppStreamTextSystemPrompt": "The currently selected client's name is '{SelectedClientName}'. Treat any case-insensitive or partial mention as referring to this client.\r\n If the user mentions no name, assume they are asking about '{SelectedClientName}'.\r\n If the user references a name that clearly differs from '{SelectedClientName}' or comparing with other clients, respond only with: 'Please only ask questions about the selected client or select another client.' Otherwise, provide thorough answers for every question using only data from SQL or call transcripts.'\r\n If no data is found, respond with 'No data found for that client.' Remove any client identifiers from the final response.\r\n Always send clientId as '{client_id}'."
368368
},
369369
"resources": [
370+
{
371+
"type": "Microsoft.Resources/tags",
372+
"apiVersion": "2021-04-01",
373+
"name": "default",
374+
"properties": {
375+
"tags": {
376+
"TemplateName": "Client Advisor"
377+
}
378+
}
379+
},
370380
{
371381
"type": "Microsoft.Resources/deployments",
372382
"apiVersion": "2022-09-01",
@@ -394,8 +404,8 @@
394404
"metadata": {
395405
"_generator": {
396406
"name": "bicep",
397-
"version": "0.36.1.42791",
398-
"templateHash": "1287895326947269968"
407+
"version": "0.36.177.2456",
408+
"templateHash": "17366528426252264029"
399409
}
400410
},
401411
"parameters": {
@@ -508,8 +518,8 @@
508518
"metadata": {
509519
"_generator": {
510520
"name": "bicep",
511-
"version": "0.36.1.42791",
512-
"templateHash": "2457137526968921597"
521+
"version": "0.36.177.2456",
522+
"templateHash": "18360475517235523175"
513523
}
514524
},
515525
"parameters": {
@@ -733,8 +743,8 @@
733743
"metadata": {
734744
"_generator": {
735745
"name": "bicep",
736-
"version": "0.36.1.42791",
737-
"templateHash": "13634339460279357495"
746+
"version": "0.36.177.2456",
747+
"templateHash": "15524709584492116446"
738748
}
739749
},
740750
"parameters": {
@@ -1369,8 +1379,8 @@
13691379
"metadata": {
13701380
"_generator": {
13711381
"name": "bicep",
1372-
"version": "0.36.1.42791",
1373-
"templateHash": "4784003223337407725"
1382+
"version": "0.36.177.2456",
1383+
"templateHash": "11938772240348515861"
13741384
}
13751385
},
13761386
"parameters": {
@@ -1447,8 +1457,8 @@
14471457
"metadata": {
14481458
"_generator": {
14491459
"name": "bicep",
1450-
"version": "0.36.1.42791",
1451-
"templateHash": "1709475957170755318"
1460+
"version": "0.36.177.2456",
1461+
"templateHash": "11899270249637077405"
14521462
}
14531463
},
14541464
"parameters": {
@@ -1596,8 +1606,8 @@
15961606
"metadata": {
15971607
"_generator": {
15981608
"name": "bicep",
1599-
"version": "0.36.1.42791",
1600-
"templateHash": "12179523327793839969"
1609+
"version": "0.36.177.2456",
1610+
"templateHash": "8645494058104543506"
16011611
}
16021612
},
16031613
"parameters": {
@@ -1757,8 +1767,8 @@
17571767
"metadata": {
17581768
"_generator": {
17591769
"name": "bicep",
1760-
"version": "0.36.1.42791",
1761-
"templateHash": "9019656445963157268"
1770+
"version": "0.36.177.2456",
1771+
"templateHash": "15740867049667651602"
17621772
}
17631773
},
17641774
"parameters": {
@@ -1931,8 +1941,8 @@
19311941
"metadata": {
19321942
"_generator": {
19331943
"name": "bicep",
1934-
"version": "0.36.1.42791",
1935-
"templateHash": "6152102507143828636"
1944+
"version": "0.36.177.2456",
1945+
"templateHash": "17137003456218736893"
19361946
}
19371947
},
19381948
"parameters": {
@@ -2232,8 +2242,8 @@
22322242
"metadata": {
22332243
"_generator": {
22342244
"name": "bicep",
2235-
"version": "0.36.1.42791",
2236-
"templateHash": "4144537398413637557"
2245+
"version": "0.36.177.2456",
2246+
"templateHash": "10507186896960913919"
22372247
}
22382248
},
22392249
"parameters": {
@@ -2818,8 +2828,8 @@
28182828
"metadata": {
28192829
"_generator": {
28202830
"name": "bicep",
2821-
"version": "0.36.1.42791",
2822-
"templateHash": "399023243105742355"
2831+
"version": "0.36.177.2456",
2832+
"templateHash": "9287160422728403181"
28232833
},
28242834
"description": "Creates a SQL role assignment under an Azure Cosmos DB account."
28252835
},
@@ -2882,8 +2892,8 @@
28822892
"metadata": {
28832893
"_generator": {
28842894
"name": "bicep",
2885-
"version": "0.36.1.42791",
2886-
"templateHash": "1709475957170755318"
2895+
"version": "0.36.177.2456",
2896+
"templateHash": "11899270249637077405"
28872897
}
28882898
},
28892899
"parameters": {

0 commit comments

Comments
 (0)