AI-powered medical document chatbot using LLaMA-2 and LangChain, enabling semantic search and question answering over PDF files via Pinecone vector indexing and a Flask-based interface.
// readme
π©Ί MedQueryDoc AI β Intelligent Medical Document Assistant
Stop Ctrl+F-ing through medical PDFs. Ask in plain English, get answers from Llama-2.
π About the Project
This project is an AI-powered medical document question-answering system built using Large Language Models (LLMs) and vector-based information retrieval. It enables users to ask natural language questions and receive accurate, context-aware answers derived from medical PDF documents.
The system works by loading and splitting PDF documents into smaller chunks, generating vector embeddings using a Hugging Face embedding model, and storing them in Pinecone, a scalable vector database. During inference, user queries are matched against relevant document chunks using similarity search, and responses are generated using LLaMA-2 through a retrieval-augmented generation (RAG) pipeline.
This project demonstrates practical implementation of LLMs + LangChain + Vector Databases for real-world AI applications.
π How it works
PDFs β split into chunks β embeddings β Pinecone
β
Your question β similarity search β top chunks β Llama-2 β answerβ¦