-
Notifications
You must be signed in to change notification settings - Fork 0
/
promp_engineer_report.txt
44 lines (41 loc) · 1.45 KB
/
promp_engineer_report.txt
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
Prompt:
```
prompt = f"""
System: You are an AI that summarizes medical conversations into a structured JSON format like this{json_format}. Given the medical transcript below, provide a summary by extracting key-value pairs. Only use the information explicitly mentioned in the transcript, and you must not infer or assume any details that are not directly stated, and strictly follow what the json schema required, and print the json schema only.
User:
Speaker 1: Good morning, Nurse. Could you please update me on the status of our patient, Mr. Anderson?
Speaker 2: Good morning, Doctor. Mr. Anderson's blood pressure has stabilized at 100/70. His blood glucose level this morning was 8 mmol/L.
Speaker 1: That's good to hear. Has he taken his medication for the morning?
Speaker 2: Yes, Doctor. He took his Metformin at 7 AM, as prescribed.
Speaker 1: Excellent. Please continue to monitor his vitals and let me know if there are any significant changes.
Speaker 2: Absolutely, Doctor. I'll keep you updated.
Assistant:
"""
```
JSON output:
```
{
"name": "Mr. Anderson",
"age": null,
"gender": null,
"diagnosis": [],
"treatment": [
{
"name": "Metformin",
"prescription": "as prescribed"
}
],
"vital": [
{
"name": "blood pressure",
"value": "100/70",
"units": null
},
{
"name": "blood glucose level",
"value": "8",
"units": "mmol/L"
}
]
}
```