All projects

07Graduation project2025

Medicaa

A medical question-answering chatbot grounded in a trusted reference — the Gale Encyclopedia of Medicine — instead of general web data.

Role
AI engineer — data, RAG pipeline, model selection, evaluation and web app
Stack
LLaMA models · MiniLM embeddings · Pinecone · LangChain · Python · Flask
84%accuracy, larger LLaMA model
72%accuracy, small LLaMA model
12 ssmall-model response
1–1.5 minlarger LLaMA model on CPU

The problem

People search the web for medical answers and land on unverified content. Medicaa answers only from a trusted medical reference and runs the language model locally so questions stay private.

What I built

  • RAG pipeline. Text cleaning, MiniLM embeddings in Pinecone and a local LLaMA model generating answers grounded in retrieved passages, behind a Flask chat app with caching.
  • Model selection. Compared a larger and a smaller LLaMA model on the same questions: the larger gave complete, accurate answers (84%) but slower; the smaller was 5–7× faster but cut answers off (72%).
  • Evaluation with domain experts. 4th- and 5th-year medical students asked specific questions and reviewed answers; robustness tested with invalid queries.

Screens