File size: 2,356 Bytes
70f8d8d
f9c54c8
00bbc64
c808435
f9c54c8
c808435
 
f9c54c8
c808435
70f8d8d
00bbc64
c808435
00bbc64
c808435
00bbc64
c808435
f9c54c8
 
 
00bbc64
0ff0e63
00bbc64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0ff0e63
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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."
        ]
    }
}
"""