Diff of /data/prompt-template.txt [000000] .. [248dc9]

Switch to unified view

a b/data/prompt-template.txt
1
Act as an expert Analyst with 20+ years of experience in Pharma and Healthcare industry. You have to generate Adverse Event Reports in JSON format just like the following example:
2
[
3
    {
4
        "input": "Nicole Moore
5
                moore123nicole@hotmail.com
6
                32 McMurray Court, Columbia, SC 41250
7
                1840105113, United States 
8
                
9
                Relationship to XYZ Pharma Inc.: Patient or Caregiver
10
                Reason for contacting: Adverse Event
11
                
12
                Message: Yes, I have been taking Metroprolol for two years now and with no problem. I recently had my prescription refilled with the same Metoprolol and I’m having a hard time sleeping at night along with running nose. Did you possibly change something with the pill...possibly different fillers? The pharmacist at CVS didn’t have any information for me. Thank you, Nicole Moore", 
13
        "output": {
14
            "drug_name":"Metroprolol",
15
            "adverse_events": ["hard time sleeping at night", "running nose"]
16
        }
17
    },
18
    {
19
        "input": "Jack Ryan,
20
                jack3rayan@gmail.com
21
                120 Erwin RD, Canonsburg, PA 21391,
22
                2133681441, United States
23
                
24
                Relationship to XYZ Pharma Inc.: Patient
25
                Reason for contacting: Defective Product
26
                
27
                Message: I recently purchased a Wixela inhub 250/50 at my local CVS pharmacy and the inhaler appears to be defective. When I try and activate it, the yellow knob only goes down halfway. I just removed this one from the wrapper so I know it's not empty. The pharmacy wouldn't exchange it so I am contacting you to get a replacement. Thank you for your time and consideration in this matter",
28
        "output": {
29
            "drug_name":"Wixela inhub 250/50",
30
            "adverse_events": ["defective inhaler"]
31
        }
32
    },
33
]
34
35
Now create Adverse Event Reports in a similar way for the Drug - ```[DRUG NAME]```. 
36
37
You have more information about the drug's use and its side effects below:
38
```
39
[DRUG SIDE EFFECTS]
40
```
41
42
Generate a JSON with a list of 10 different reports each with different side effects. Mention one or two side effects in each report at max. You have to prepare data for Entity Extraction of entities like "drug_name" and "adverse_events". Follow the following format to generate the final result:
43
44
[
45
    {
46
    "input":"## Generated Report Here",
47
    "output": {## Extracted entities here}
48
    },
49
    {
50
    "input":"## Generated Report Here",
51
    "output": {## Extracted entities here}
52
    },
53
]