An AI-powered Retrieval-Augmented Generation (RAG) application that enables users to upload PDF documents and ask natural language questions. The application retrieves relevant information from the document using semantic search and generates context-aware responses using Large Language Models (LLMs).
👉 Streamlit App: [(https://ragagentlangchain.streamlit.app/)]
- 📄 Upload any PDF document
- 🤖 AI-powered question answering
- 🔍 Semantic search using vector embeddings
- 🧠 Retrieval-Augmented Generation (RAG)
- 💬 Conversational chat interface
- 📝 Context-aware responses
- ⚡ Fast inference with Groq LLM
- 🔄 Conversation memory using LangGraph
- 🌐 Streamlit-based interactive UI
- LangChain
- LangGraph
- Groq LLM
- Google Gemini Embeddings
- InMemory Vector Store
- Streamlit
- Python
Upload PDF
│
▼
PDF Loader (PyPDF)
│
▼
Recursive Text Splitter
│
▼
Google Gemini Embeddings
│
▼
InMemory Vector Store
│
▼
LangGraph AI Agent
│
┌──────────┴──────────┐
│ │
▼ ▼
Semantic Search Tool Groq LLM
│ │
└──────────┬──────────┘
▼
AI Generated Answer
│
▼
Streamlit Interface
Clone the repository
git clone https://github.com/yourusername/PDF-RAG-Assistant.gitMove into the project
cd PDF-RAG-AssistantInstall dependencies
pip install -r requirements.txtCreate a .env file
GOOGLE_API_KEY=YOUR_GOOGLE_API_KEY
GROQ_API_KEY=YOUR_GROQ_API_KEYRun the application
streamlit run app.pyPDF-RAG-Assistant
│
├── app.py
├── requirements.txt
├── README.md
├── .env.example
├── doc_files/
└── assets/
- Upload a PDF document.
- The document is parsed using PyPDFLoader.
- Text is divided into smaller chunks.
- Each chunk is converted into vector embeddings.
- Embeddings are stored in an in-memory vector database.
- User questions are semantically matched against the stored vectors.
- Relevant context is retrieved.
- The Groq LLM generates an answer using the retrieved context.
- Responses are displayed in a conversational Streamlit interface.
Add screenshots or a GIF here.
Example:
- Upload PDF
- Ask Questions
- AI Generated Answers
- FAISS / ChromaDB support
- Multi-PDF chat
- PDF summarization
- Source citations
- Conversation export
- Streaming responses
- Hybrid Search (BM25 + Vector Search)
- Persistent chat history
Veer Tiwari
AI Engineer | Machine Learning | Generative AI
GitHub: https://github.com/yourusername
LinkedIn: (Add your LinkedIn URL)