From 2edd6d3cc0e744aa040fbdbbdc5160df74e5ae4b Mon Sep 17 00:00:00 2001 From: Roopan P M Date: Fri, 29 Nov 2024 13:13:11 +0530 Subject: [PATCH] Added system prompt to calculate the asset value in righ way --- ClientAdvisor/AzureFunction/function_app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ClientAdvisor/AzureFunction/function_app.py b/ClientAdvisor/AzureFunction/function_app.py index f9bfd8dc8..07a068c9e 100644 --- a/ClientAdvisor/AzureFunction/function_app.py +++ b/ClientAdvisor/AzureFunction/function_app.py @@ -100,7 +100,9 @@ def get_SQL_Response( Do not include assets values unless asked for. Always use ClientId = {clientid} in the query filter. Always return client name in the query. - Only return the generated sql query. do not return anything else''' + Only return the generated sql query. do not return anything else + 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. + 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.''' try: completion = client.chat.completions.create(