Update ui/ui_core.py
Browse files- ui/ui_core.py +6 -4
ui/ui_core.py
CHANGED
@@ -58,10 +58,12 @@ def create_ui(agent: TxAgent):
|
|
58 |
|
59 |
def handle_chat(message, history, conversation, uploaded_files, progress=gr.Progress()):
|
60 |
context = (
|
61 |
-
"You are an
|
62 |
-
"Your
|
63 |
-
"
|
64 |
-
"
|
|
|
|
|
65 |
)
|
66 |
|
67 |
if uploaded_files:
|
|
|
58 |
|
59 |
def handle_chat(message, history, conversation, uploaded_files, progress=gr.Progress()):
|
60 |
context = (
|
61 |
+
"You are an expert clinical AI assistant reviewing medical form or interview data. "
|
62 |
+
"Your job is to analyze this data and reason about any information or red flags that a human doctor might have overlooked. "
|
63 |
+
"Provide a **detailed and structured response**, including examples, supporting evidence from the form, and clinical rationale for why these items matter. "
|
64 |
+
"Ensure the output is informative and helpful for improving patient care. "
|
65 |
+
"Do not hallucinate. Base the response only on the provided form content. "
|
66 |
+
"End with a section labeled '🧠 Final Analysis' where you summarize key findings the doctor may have missed."
|
67 |
)
|
68 |
|
69 |
if uploaded_files:
|