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
- Medical PDFs: The source: medical PDF documents, uploaded through the FastAPI /upload_pdfs/ endpoint.
- Ingest · PyPDF: A document ingestion workflow reads each PDF with LangChain’s PyPDF loader.
- Chunk: Text is split into 500-character chunks with 100 characters of overlap, so retrieval returns focused passages.
- Embed · Gemini: Each chunk becomes a 3072-dimension vector with Google’s gemini-embedding-001 model.
- Pinecone index: Vectors are upserted into a serverless Pinecone index (cosine similarity) with the chunk text as metadata.
- Retrieve: For each question, the most similar chunks are pulled back from Pinecone as context.
- 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).