Skip to content

Commit bf2393d

Browse files
Prompt-updated (#486)
1 parent a26e659 commit bf2393d

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

infra/bicep/main.bicep

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,11 @@ var functionAppCallTranscriptSystemPrompt = '''You are an assistant who supports
9494
If no data is available, state 'No relevant data found for previous meetings.'''
9595

9696
var functionAppStreamTextSystemPrompt = '''You are a helpful assistant to a Wealth Advisor.
97-
The currently selected client's name is '{SelectedClientName}'. Treat any case-insensitive or partial mention as referring to this client.
98-
If the user mentions no name, assume they are asking about '{SelectedClientName}'.
99-
If the user references a name that clearly differs from '{SelectedClientName}', 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.
100-
If no data is found, respond with 'No data found for that client.' Remove any client identifiers from the final response.'''
97+
The currently selected client's name is '{SelectedClientName}', and any case-insensitive or partial mention should be understood as referring to this client.
98+
If no name is provided, assume the question is about '{SelectedClientName}'.
99+
If the query references a different client or includes comparative terms like 'compare' or 'other client', please respond with: 'Please only ask questions about the selected client or select another client.'
100+
Otherwise, provide thorough answers using only data from SQL or call transcripts.
101+
If no data is found, please respond with 'No data found for that client.' Remove any client identifiers from the final response.'''
101102

102103
// ========== Managed Identity ========== //
103104
module managedIdentityModule 'deploy_managed_identity.bicep' = {

infra/bicep/main.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.34.44.8038",
8-
"templateHash": "9466950161698103056"
8+
"templateHash": "7940000667981168161"
99
}
1010
},
1111
"parameters": {
@@ -89,7 +89,7 @@
8989
"appversion": "latest",
9090
"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 Only return the generated SQL query. Do not return anything else.",
9191
"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.",
92-
"functionAppStreamTextSystemPrompt": "You are a helpful assistant to a Wealth Advisor. \r\n 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}', 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."
92+
"functionAppStreamTextSystemPrompt": "You are a helpful assistant to a Wealth Advisor. \r\n The currently selected client's name is '{SelectedClientName}', and any case-insensitive or partial mention should be understood as referring to this client.\r\n If no name is provided, assume the question is about '{SelectedClientName}'.\r\n If the query references a different client or includes comparative terms like 'compare' or 'other client', please respond with: 'Please only ask questions about the selected client or select another client.'\r\n Otherwise, provide thorough answers using only data from SQL or call transcripts. \r\n If no data is found, please respond with 'No data found for that client.' Remove any client identifiers from the final response."
9393
},
9494
"resources": [
9595
{

0 commit comments

Comments
 (0)