Skip to content

mahesh14-cpu/Pharma-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’Š Pharma Dictionary Chatbot

An AI-powered chatbot for pharmaceutical terminology reference built using LangChain and RAG.

🎯 Project Overview This chatbot helps students, healthcare professionals, researchers, and pharmacists quickly understand pharmaceutical terms and definitions from the Pharmacy Dictionary.

πŸ› οΈ Technologies Used

  • LangChain - AI framework
  • HuggingFace - Free LLM (Mistral-7B)
  • FAISS - Vector database
  • Gradio - Web UI
  • RAG - Retrieval Augmented Generation
  • Sentence Transformers - Text embeddings

πŸ“ Project Structure

Pharma-Chatbot/
β”œβ”€β”€ Pharma_Chatbot.ipynb    # Main notebook
β”œβ”€β”€ Pharmacy Dictionary.pdf  # Knowledge base
β”œβ”€β”€ requirements.txt         # Dependencies
└── README.md               # Documentation

βš™οΈ Installation & Setup

  1. Clone Repository
git clone https://github.com/mahesh14-cpu/Pharma-Chatbot.git
cd Pharma-Chatbot
  1. Install Requirements
pip install -r requirements.txt
  1. Get HuggingFace Token
  1. Run the Notebook
  • Open Pharma_Chatbot.ipynb in Jupyter
  • Add your HuggingFace token in Cell 3
  • Run all cells in order

πŸš€ How It Works

  1. PDF is loaded and split into chunks
  2. Chunks are converted to embeddings using Sentence Transformers
  3. Embeddings stored in FAISS vector database
  4. User question is searched in vector database
  5. Relevant context sent to Mistral-7B LLM
  6. Answer displayed in Gradio UI

πŸ’¬ Example Questions

  • What is bioavailability?
  • Define enteric coating
  • What is pharmacokinetics?
  • Explain drug absorption

πŸ‘€ Author

About

AI-powered Pharmaceutical Dictionary Chatbot using RAG

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors