← Back to projects
Hippocrates Medical Chatbot logo
Medical AI · RAG

Hippocrates Medical Chatbot

Medical-reference RAG chatbot using Flask, LangChain, Pinecone, and cited PDF passages.

Medical AILangChainPinecone

Overview

Hippocrates is a medical-reference chatbot built around Retrieval-Augmented Generation (RAG), connecting a conversational interface to passages from a medical encyclopedia. Its Flask and LangChain architecture supports document retrieval, OpenAI-powered answers, and Pinecone vector search when the live integrations are configured. The application includes conversation history, follow-up questions, PDF-page references, response feedback, and a responsive light/dark interface. It also incorporates safety-oriented prompting, offline tests, and optional LangSmith tracing and Prometheus monitoring. Designed for educational reference rather than diagnosis, it demonstrates an end-to-end document-grounded AI application with practical observability and responsible source handling.

Technical details

The document pipeline loads and chunks PDF material, generates text embeddings, and indexes passages in Pinecone while retaining page metadata for source attribution. A history-aware retriever can incorporate up to eight preceding messages to resolve follow-up questions, and the answer layer grounds responses in retrieved evidence. A separate no-keys preview, tests for missing evidence and citation handling, and optional LangSmith feedback provide practical safeguards around the retrieval workflow.