CatchTheTornado / doctor-dok

Doctor Dok is an AI based medical data framework and patient's med vault. Parse any health related PDF/Image to JSON and then use Chat GPT / LLama to discuss it! WARNING: Don't decide on your health based on AI Chat - it's just for Research purposes.
http://doctordok.com
MIT License
43 stars 7 forks source link

[feat] Add conversational / template based mode #124

Open pkarw opened 2 months ago

pkarw commented 2 months ago

Based on #120 prompts - we might want to ask ChatGPT like: "Check the diabetes risk. You might ask me additional question given the select options marking it in the {question}{/question}{answer}{/answer} pair brackets - for example: {question}Was anyone in your family suffering diabetes?{question} {answer}Someone in my family {select:was|was not} suffering diabetes{/answer}. Ask up to 5 more questions and give the answer based on my health history. Ask one question at time up to 5 questions in the conversation"

pkarw commented 2 months ago

In the chat.tsx we then need to analyze the chat responses and if {select|checkbox|input:} template is in the response we might want to display the qeustion as prompt answer

pkarw commented 2 months ago
image