MediChat is a health-consultation app built by a team. My share was the chatbot: everything from raw medical text to a working chat system.
The team built the rest, including the app and frontend. I handed the frontend team four iterations of the chatbot as it improved, and the code for my process lives in its own repository. Teammates are credited on the repository and below.
The pipeline
Data and filtering
I assembled medical text from public sources and filtered it to muscle-related conditions, then fixed several bugs in the original filtering scripts.
Choose a model
I compared four models locally and kept RoBERTa for question answering.
Fine-tune in stages
The model started from deepset/roberta-base-squad2. It was then tuned on disease and symptom question answering, then on PubMedQA yes/no questions, then on a custom question-answering set.
Train on the cluster
The final training ran on the Artemis node of the Kakos cluster at Manhattan University.
Design the chatbot
I turned the model into a chat system, over four stages (below).
A small, honest test
To compare models I wrote a selection test on 100 muscle-filtered entries, run in both directions, for 200 passes. Given a disease, the model names three symptoms, and it scores a hit when two match. Given symptoms, it names the disease, and it scores a hit when the disease matches.
31
hits for RoBERTa on a local machine
56
hits after cluster training
This is a sanity check for choosing a direction, not a benchmark. It is small and specific, and it does not show clinical accuracy.
How the chatbot evolved
Gradio prototype and FastAPI baseline
A first working loop, then an API the frontend team could call.
Polishing experiments
I tried Zephyr-7B and GPT-3.5 to polish the answers. Zephyr was too light and not promising enough, and I tried GPT-3.5 as the alternative.
NLTK symptom matching
A command-line version that matches symptoms directly. It showed me what the local knowledge could do alone.
Final hybrid on Mistral-7B-Instruct
The local guide began as a router and became a knowledge base that acts as a barrier against wrongly inferred answers. Mistral writes the conversation around it.
Limits
MediChat is a student project and not a medical device. It does not diagnose, and nobody should use it in place of a clinician.
Code and credits
- MediChat_Capstone-2025 on GitHubMy chatbot process: data, training and selection, chatbot design
- The full app on GitLabThe team repository, including the app and frontend
Built with teammates, who are credited in the repository. Data from public sources including the Disease-Symptom Description Dataset on Kaggle (Itachi 9604, 2022), PubMed and DrugBank.