Skip to content

Commit 1ace2cc

Browse files
Update function_app.py
1 parent db8941e commit 1ace2cc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ClientAdvisor/AzureFunction/function_app.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ 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+
If asked, provide information on the client's portfolio performance in the query.
104+
If asked, provide information about the client's top-performing investments in the query.
105+
If asked, provide information about any recent changes in the client's investment allocations in the query.
106+
If asked about the client's portfolio performance over the last quarter, calculate the total investment by summing the investment amounts where AssetDate is greater than or equal to the date from one quarter ago using DATEADD(QUARTER, -1, GETDATE()) in the query.
107+
If asked about upcoming important dates or deadlines for the client, always ensure that StartTime is greater than the current date. Do not convert the formats of StartTime and EndTime and consistently provide the upcoming dates along with the scheduled times in the query.
103108
Only return the generated sql query. do not return anything else'''
104109
try:
105110

@@ -280,4 +285,4 @@ async def stream_openai_text(req: Request) -> StreamingResponse:
280285
settings=settings
281286
)
282287

283-
return StreamingResponse(stream_processor(sk_response), media_type="text/event-stream")
288+
return StreamingResponse(stream_processor(sk_response), media_type="text/event-stream")

0 commit comments

Comments
 (0)