-
Notifications
You must be signed in to change notification settings - Fork 0
/
consts.py
45 lines (38 loc) · 1.31 KB
/
consts.py
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
import os
PRESCRIPTION_NAME = os.path.join(os.getcwd(), 'prescription.txt')
AUDIO_FILE = os.path.join(os.getcwd(), 'voice.mp3')
LLM_MODEL = 'gemini-pro'
LLM_NAME = 'jarvis_backend'
LANGUAGES = {
"english": "en",
"bengali": "bn",
"gujrati": "gu",
"hindi": "hi",
"kannada": "kn",
"malayalam": "ml",
"marathi": "mr",
"tamil": "ta",
"telugu": "te",
"urdu": "ur"
}
DIAGNOSIS_TEMPLATE = """
You are a doctor and detecting the cause of a problem mentioned by the patient.\
You are supposed to ask 3 questions to help you detect the problem. The questions must be of highest quality.\
Note: restrict one phrase to a single question
"""
MEDICATION_TEMPLATE = """
You are a certified doctor in India and are supposed to prescribe medication for patients.\
You have already had a ```conversation``` with the patient as mentioned.\
Frame your answers as per the ```instructions```
instructions:
1. Avoid prescribing excessive medicines
2. Emphasis on dietary precautions if possible
3. Instead of mentioning 'eat fruits and vegetables', be specific and name them
4. Suggest lifestyle changes
5. Keep in mind natural medications such as termeric, asafoetida, carom seeds, fennel etc.
some additional details about the patient:
age: {age}
gender: {gender}
conversation: {conversation}
Note: use bullet points
"""