Spaces:
Running
Running
Remove source citation from answers
Browse files
agent.py
CHANGED
|
@@ -29,10 +29,10 @@ MAX_CONTEXT_CHARS = 5000
|
|
| 29 |
MAX_RETRIES = 0 # reflection shows in trace but never retries (3B too small for reliable self-grounding)
|
| 30 |
|
| 31 |
SYSTEM_PROMPT = """You are ClinIQ, a clinical document assistant for small medical clinics.
|
| 32 |
-
Answer ONLY from the provided document excerpts.
|
| 33 |
-
If information is explicitly stated in the excerpts, answer from it
|
| 34 |
Only say "Not found in the provided documents" if the information is genuinely absent from ALL excerpts.
|
| 35 |
-
|
| 36 |
|
| 37 |
STRUCTURED_SCHEMAS = {
|
| 38 |
"medications": ("List every medication with dose and frequency as JSON array: "
|
|
|
|
| 29 |
MAX_RETRIES = 0 # reflection shows in trace but never retries (3B too small for reliable self-grounding)
|
| 30 |
|
| 31 |
SYSTEM_PROMPT = """You are ClinIQ, a clinical document assistant for small medical clinics.
|
| 32 |
+
Answer ONLY from the provided document excerpts. Be concise and medically precise.
|
| 33 |
+
If information is explicitly stated in the excerpts, answer from it directly.
|
| 34 |
Only say "Not found in the provided documents" if the information is genuinely absent from ALL excerpts.
|
| 35 |
+
Never hallucinate clinical information. Do not append source citations to your answer."""
|
| 36 |
|
| 37 |
STRUCTURED_SCHEMAS = {
|
| 38 |
"medications": ("List every medication with dose and frequency as JSON array: "
|