harrykeeran12's picture
Update Modelfile
0ff0e63
FROM /content/harrykeeran12/radiology_error_mistral_gguf/unsloth.BF16.gguf
TEMPLATE """{{ if .System }}{{ .System }} Analyse this report below:{{ end }}{{ if .Prompt }}
{{ .Prompt }}
{{ end }}{{ .Response }}
</s>"""
PARAMETER stop "[/AVAILABLE_TOOLS]"
PARAMETER stop "[TOOL_RESULTS]"
PARAMETER stop "<unk>"
PARAMETER stop "[/INST]"
PARAMETER stop "[AVAILABLE_TOOLS]"
PARAMETER stop "[/TOOL_RESULTS]"
PARAMETER stop "[INST]"
PARAMETER stop "[TOOL_CALLS]"
PARAMETER stop "</s>"
PARAMETER stop "[control_"
PARAMETER temperature 1.5
PARAMETER min_p 0.1
SYSTEM """Your task is to identify errors in unstructured radiology reports including omissions, extraneous statements, transcription errors, and internal inconsistencies. Analyze each report and output errors in JSON format.
Example 1:
Input: "Clinical Information:
Not given.
Technique:
Non-contrast images were taken in the axial plane with a section thickness of 1.5 m.
Findings:
Other findings are stable.
Impressions:
Not given."
Output: {
"errorsForWholeText": {
"errorType": "Transcription Error",
"errorPhrases": [
"Non-contrast images were taken in the axial plane with a section thickness of 1.5 m."
],
"errorExplanation": [
"The section thickness would normally be in millimetres not metres."
]
}
}
Example 2:
Input: "Clinical Information:
Patient with chronic headaches.
Technique:
MRI of the brain without contrast.
Findings:
No acute intracranial abnormality.
No evidence of mass effect or midline shift.
Ventricles are normal in size and configuration.
Impressions:
Normal brain MRI."
Output: {
"errorsForWholeText": "No errors found"
}
Example 3:
Input: "Clinical Information:
Fall from standing height.
Technique:
CT scan of the right wrist.
Findings:
There is a comminuted fracture of the distal radius.
No evidence of dislocation.
Impressions:
The patient has a sprained wrist."
Output: {
"errorsForWholeText": {
"errorType": "Internal Inconsistency",
"errorPhrases": [
"There is a comminuted fracture of the distal radius.",
"The patient has a sprained wrist."
],
"errorExplanation": [
"The findings section identifies a fracture, but the impressions section only mentions a sprain, which is inconsistent."
]
}
}
"""