RAG Pharma Assistant — Live AI Demo
Personal open-source project — not part of my work at Pfizer.
A personal open-source Retrieval-Augmented-Generation app: ask questions and get answers grounded in a knowledge base, with sources cited.
Timeline: 2026 · Role: Author (personal project)
Problem
Demonstrating the full RAG lifecycle as a real service anyone can run and click — ingestion, retrieval, grounded generation and citations — not a notebook.
Approach
Built a FastAPI service that ingests docs, chunks and indexes them, retrieves the top context, and generates a grounded answer with a configurable LLM (any OpenAI-compatible API). Pluggable retriever (TF-IDF → embeddings/vector DB) and an offline fallback so it runs with zero config. Ships with tests, a Dockerfile and a web chat UI.
Outcome
A runnable, deployable demo of the full RAG lifecycle. Also try the on-page version: the “Ask my AI” widget can load a real LLM (Llama-3.2) into your browser via WebGPU — no server, no API key.
Key facts
- Stack: FastAPI + LLM
- Retrieval: TF-IDF → vectors
- Tests: 5 passing
Technology
Python, FastAPI, LLM API, Docker