Skip to content

Commit 45078ce

Browse files
bicep_prompts
1 parent e98267d commit 45078ce

File tree

1 file changed

+39
-3
lines changed

1 file changed

+39
-3
lines changed

ClientAdvisor/Deployment/bicep/main.bicep

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,48 @@ var solutionLocation = resourceGroupLocation
2424
var baseUrl = 'https://raw.githubusercontent.com/microsoft/Build-your-own-copilot-Solution-Accelerator/main/ClientAdvisor/'
2525
var appversion = 'latest'
2626

27-
var functionAppSqlPrompt = '''Genereate 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 Investement column from 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'''
27+
var functionAppSqlPrompt = '''Genereate a valid T-SQL query to find {query} for tables and columns provided below:
28+
1. Table: Clients
29+
Columns: ClientId, Client, Email, Occupation, MaritalStatus, Dependents
2830
29-
var functionAppCallTranscriptSystemPrompt = '''You are an assistant who supports wealth advisors in preparing for client meetings.\r\nYou have access to the client’s past meeting call transcripts, which you can use to provide relevant insights and information.\r\nAnswer questions asked about the clients based on the available transcripts.'''
31+
2. Table: InvestmentGoals
32+
Columns: ClientId, InvestmentGoal
3033
31-
var functionAppStreamTextSystemPrompt = '''You are a helpful assistant to a Wealth Advisor. For any query provided, produce a detailed answer based solely on available client data from the SQL database or call transcripts. If no data is found for that query or client, respond with 'No data found for that client.' Remove any client identifiers from the final response.'''
34+
3. Table: Assets
35+
Columns: ClientId, AssetDate, Investment, ROI, Revenue, AssetType
3236
37+
4. Table: ClientSummaries
38+
Columns: ClientId, ClientSummary
39+
40+
5. Table: InvestmentGoalsDetails
41+
Columns: ClientId, InvestmentGoal, TargetAmount, Contribution
42+
43+
6. Table: Retirement
44+
Columns: ClientId, StatusDate, RetirementGoalProgress, EducationGoalProgress
45+
46+
7. Table: ClientMeetings
47+
Columns: ClientId, ConversationId, Title, StartTime, EndTime, Advisor, ClientEmail
48+
49+
Always use Investment column from Assets table as the value.
50+
Assets table has snapshots of values by date. Do not add numbers across different dates for total values.
51+
Do not use client name in filters.
52+
Do not include assets values unless asked for.
53+
ALWAYS use ClientId = {clientid} in the query filter.
54+
ALWAYS select Client Name (Column - Client) in the query.
55+
Query filters are IMPORTANT. Add filters like AssetType, AssetDate, etc. if needed.
56+
Only return the generated SQL query. Do not return anything else.'''
57+
58+
59+
var functionAppCallTranscriptSystemPrompt = '''You are an assistant who supports wealth advisors in preparing for client meetings.
60+
You have access to the client’s past meeting call transcripts, which you can use to provide relevant insights and information.
61+
Answer questions asked about the clients based on the available transcripts.'''
62+
63+
var functionAppStreamTextSystemPrompt = '''You are a helpful assistant to a Wealth Advisor.
64+
For any query provided, produce a detailed answer based solely on available client data from the SQL database or call transcripts.
65+
If no data is found for that query or client, respond with 'No data found for that client.'
66+
Remove any client identifiers from the final response.'''
67+
68+
3369
// ========== Managed Identity ========== //
3470
module managedIdentityModule 'deploy_managed_identity.bicep' = {
3571
name: 'deploy_managed_identity'

0 commit comments

Comments
 (0)