Skip to content

Chatbot that can talk about various medical topics such as diseases, medicines etc.

Notifications You must be signed in to change notification settings

vishnusingh-12/doc-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

doc-bot

A medical chatbot that can talk about medicines, diseases, symptoms and treatments.

Medical Chatbot

  • Can chat about diseases and their symtopms, drugs and treatments etc.
  • Utilizes RAG (Retrieval-Augmented Generation) with a medicine encyclopedia provided as a pdf. (The document can be changed to make the bot more intelligent)
  • Uses HuggingFace embeddings for vector conversion.
  • Uses FAISS(Facebook AI Similarity Search) to create and store an index on the local machine.
  • Uses the llama 2 LLM model for generating natural response.

Screenshots

App Screenshots

Deployment

git clone  https://github.com/vishnusingh-12/doc-bot
cd doc-bot
pip install -r requirements.txt
python embedding_creation.py
chainlit run model.py 

The model uses GPU with CUDA 11.8 to run for which LlamaCpp has to be configured differently. Follow the below link for reference: https://python.langchain.com/docs/integrations/llms/llamacpp

The model uses a quantized llama 2 model and can also run on cpu with no change in the code. If LlamaCpp Cuda version is available it uses GPU else it uses CPU.

Technologies

Support

For support, contact me:

Gmail     Instagram     GitHub     LinkedIn

About

Chatbot that can talk about various medical topics such as diseases, medicines etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages