An AI-powered chatbot that allows users to upload PDF documents and ask questions about their content.
This project implements a Retrieval-Augmented Generation (RAG) pipeline using vector embeddings and a local language model.
- Upload multiple PDF documents
- Ask questions about the uploaded documents
- Vector search using ChromaDB
- AI-generated answers
- Simple ChatGPT-style web interface
Python
FastAPI
LangChain
ChromaDB
HuggingFace Transformers
SentenceTransformers
- PDF documents are uploaded
- Documents are split into smaller text chunks
- Each chunk is converted into embeddings
- Embeddings are stored in a vector database
- User questions retrieve the most relevant chunks
- A language model generates the final answer
Clone the repository:
git clone https://github.com/adi232323/rag-pdf-chatbot.git
Install dependencies:
pip install -r requirements.txt
Run the server:
uvicorn api:app --host 0.0.0.0 --port 8000
Open the application:
rag-pdf-chatbot │ ├── api.py ├── rag_pipeline.py ├── index.html ├── requirements.txt └── README.md
