Skip to content

Commit 2edd6d3

Browse files
Added system prompt to calculate the asset value in righ way
1 parent db8941e commit 2edd6d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ClientAdvisor/AzureFunction/function_app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ def get_SQL_Response(
100100
Do not include assets values unless asked for.
101101
Always use ClientId = {clientid} in the query filter.
102102
Always return client name in the query.
103-
Only return the generated sql query. do not return anything else'''
103+
Only return the generated sql query. do not return anything else
104+
To determine the asset value, sum the investment values for the most recent available date. If asked for the asset types in the portfolio and the present of each, provide a list of each asset type with its most recent investment value.
105+
If the user inquires about asset on a specific date ,sum the investment values for the specific date avoid summing values from all dates prior to the requested date.If asked for the asset types in the portfolio and the value of each for specific date , provide a list of each asset type with specific date investment value avoid summing values from all dates prior to the requested date.'''
104106
try:
105107

106108
completion = client.chat.completions.create(

0 commit comments

Comments
 (0)