MediSuperBot: RAG-based AI assistant

Lets people ask questions of medical PDF documents and get answers drawn from their contents.

Stack: RAG, FastAPI, Pinecone, Groq.

Architecture

  1. Medical PDFs: The source: medical PDF documents, uploaded through the FastAPI /upload_pdfs/ endpoint.
  2. Ingest · PyPDF: A document ingestion workflow reads each PDF with LangChain’s PyPDF loader.
  3. Chunk: Text is split into 500-character chunks with 100 characters of overlap, so retrieval returns focused passages.
  4. Embed · Gemini: Each chunk becomes a 3072-dimension vector with Google’s gemini-embedding-001 model.
  5. Pinecone index: Vectors are upserted into a serverless Pinecone index (cosine similarity) with the chunk text as metadata.
  6. Retrieve: For each question, the most similar chunks are pulled back from Pinecone as context.
  7. GPT-OSS 120B · Groq: Groq-hosted GPT-OSS 120B answers only from that context, and says so when the context isn’t enough. Served from FastAPI; the model is a setting, so it moved off the retired Llama 3.3 70B without code changes.

What she built

  • Developed an AI-powered assistant that enables users to query and retrieve information from medical PDF documents.
  • Built backend services using FastAPI and integrated LLM-based question answering.
  • Implemented document ingestion, chunking, and vector embedding workflows for retrieval-augmented generation (RAG).

Live · GitHub · backend · GitHub · frontend