Skip to content

Commit

Permalink
Merge pull request #10 from Roopan-Microsoft/PSL_BUG_8401
Browse files Browse the repository at this point in the history
Update function_app.py regarding the system message
  • Loading branch information
Roopan-Microsoft authored Oct 11, 2024
2 parents e1de154 + a59fa5a commit 59e6a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ClientAdvisor/AzureFunction/function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ async def stream_openai_text(req: Request) -> StreamingResponse:

system_message = '''you are a helpful assistant to a wealth advisor.
Do not answer any questions not related to wealth advisors queries.
If the client name and client id do not match, only return - Please only ask questions about the selected client or select another client to inquire about their details. do not return any other information.
**If the client name in the question does not match the selected client's name**, always return: "Please ask questions only about the selected client." Do not provide any other information.
Only use the client name returned from database in the response.
Always consider to give selected client full name only in response and do not use other example names also consider my client means currently selected client.
If you cannot answer the question, always return - I cannot answer this question from the data available. Please rephrase or add more details.
Expand Down

0 comments on commit 59e6a98

Please sign in to comment.