3
10 Comments

Show IH: ๐Ÿ’Š MedGPT - Get information on medicines, treatments and diagnoses

https://medgpt.vercel.app

๐Ÿ‘‹ Hey IH,

I made this GPT-3 powered medication guide called MedGPT. ๐Ÿ‘จโ€โš•๏ธ

Please share your valuable feedback! โœจ

Peace โœŒ๏ธ

submitted this linkon May 13, 2023
  1. 3

    I would be very cautious about using GPT for medical advice because GPT (and other LLMs) can hallucinate false information. Even with a disclaimer, this seems like it has the potential to cause harm. Say that your website gives some false information about a condition like diabetes, that could lead to some serious harm if someone (e.g. a diabetic) follows that faulty information. You can try to prevent this from happening, but you wonโ€™t ever be able to cover all the edge cases. Normally I donโ€™t say this, but I would seriously reconsider working on this project just due to the potential for harm. Thatโ€™s not even getting into the potential legal ramifications. I donโ€™t know if just putting a disclaimer would be enough to protect you. Maybe it would be, but regardless this is still pretty risky from a legal perspective. Donโ€™t get me wrong, I am very pro-AI. However, this is one of those things that is risky enough where Iโ€™d advise against it. In general, using GPT for medicine is an ethical and legal minefield until researchers find a way to raise the accuracy.

    1. 1

      Thanks for your valuable comment, Phil! I can understand your concerns. Would it be better if I train my own model?

      1. 1

        I think generally the issue isn't with the model training. It's more with how these models work to begin with. Large Language Models operate off the principle of basically figuring out what is most probable to come next in a piece of text. In general, what is likely to come next not always equal to what's true. E.G. If you give it a bunch of context saying X medical fact is true, then the model would be more likely to agree with you since the context makes it seem more probable. OpenAI tries to prevent it from saying false (but probable) facts. But it's not foolproof and false facts can slip through. This is sort of an active area of research for all the AI giants and it's something nobody has solved yet. Even Microsoft, Google, and OpenAI have been unable to fully solve this issue. It's not a trivial task to solve simply because large language models like GPT care about probability not facts as mentioned before.

        There's tricks you can do with taking medical information => converting it to embeddings => running an embedding search when GPT is asked a question => feeding the medical information the embeddings point to into the prompt. That will decrease the likelihood of false information. Other solutions like training your own model are less likely to work. Yes, there's been companies who have custom trained LLMs on datasets and achieved better performance in specific areas (e.g. Bloomberg's recent financial LLM comes to mind). But those are companies with massive amounts of resources (even then they haven't fully fixed the false information problem afaik). Any individual is less likely to be able to achieve this because 1) There's not many open source LLMs to base it on that also allow commercial use (LLAMA is not for commercial use) 2) Training is one thing. Training it to not say false information is a whole different beast. As a whole, any LLM you train yourself will probably be lower performance than GPT and be even more likely to say something false IMO. OpenAI put a lot of effort into preventing AI models from saying false information and it's unlikely an individual can match their work. So I would not recommend trying to train a model yourself.

        Regardless though, even if you do the embedding trick there will still be a chance the model will say something false for the reasons mentioned above. I would generally shy away from using GPT (or any large language model) for medical usage. I've seen advances made on LLMs regarding medical advice on the news (e.g. Med-Palm-2 is probably the closest thing to a human doctor). But even then, they aren't perfect (plus Med-Plam-2 isn't even fully public yet). In general, if Google, Microsoft, and OpenAI can't solve the false information problem then it's unlikely you will be able to yourself. You can use GPT for a lot of stuff (sales, marketing, etc). But when it comes to medical advice (which is a highly sensitive topic), the characteristics of GPT make it too risky. By using these models for medical advice, you're essentially putting something on the web that might occasionally give bad medical advice to someone and put their health at risk. Not to even mention that this is very risky to you from a legal perspective. Yes, you can have a disclaimer, but regardless from my perspective it's still a risky proposition.

  2. 2

    Iโ€™ve also been recently experimenting with ChatGPT API and wanted to call my prototype SalesGPT(embeddable chat on any pricing page that consults you about the tiers). And then stumbled upon this:
    https://twitter.com/pbteja1998/status/1654095756200931328?s=52&t=5cP720PiVK6fy0KfC5ve9g
    Seems using GPT in your product name might be a no go.

    1. 1

      Thanks for the heads up, Sergey! Gotta change the name.

  3. 2

    Cool idea and meaningful but i would be cautious on chatgpt3 for such things for now.

  4. 2

    Nice to see you used Flutter Here!

  5. 2

    Cool idea, and nice simple execution you can use to gather feedback. I do have a few questions/concerns.

    1. Seems almost identical to ChatGPT - I assume this is just their API with a "system" prompt to try to focus it on medical advice. You might need more of a differentiator.

    2. I would be a little careful advertising something as medical advice. If someone follows the advice and makes their condition worse you could get sued, at least in the US.

    3. Why does it say "Enter the name of the salt?" :D

    1. 2

      Thanks for your valuable response, John!

      1. Yes, it is quite basic. What do you suggest I should do to make it more useful?
      2. I have put a disclaimer in my play store listing, would add on the web app as well. IA.
      3. I initially made the app with the idea that it'd tell the functionality of a medicine based on its salt name. So that's why.

      Thanks again!

      1. 2
        1. Not sure. In order to make it significantly better than chatGPT alone you would need to do something like give it access/ability to scan medical research journals or something like that, which would be a lot more work and impossible to know how much difference it makes until you try it.
        2. :checkmark:
        3. Interesting, I've never heard that term before and my dad is a physician.