{"id":24884158,"url":"https://github.com/anshu10101/ai-powered-multi-pdf-chatbot","last_synced_at":"2025-03-27T09:25:06.945Z","repository":{"id":275096758,"uuid":"925056886","full_name":"Anshu10101/AI-Powered-Multi-PDF-Chatbot","owner":"Anshu10101","description":"The Multi-PDF Chat AI Agent is a Streamlit app that lets users interact with multiple PDFs using AI. It extracts text, processes queries, and delivers accurate responses powered by Google Gemini Pro and FAISS for efficient document-based Q\u0026A.","archived":false,"fork":false,"pushed_at":"2025-01-31T06:25:04.000Z","size":7846,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T07:25:20.296Z","etag":null,"topics":["faiss","google-gemini-ai","langchain","python-dotenv","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anshu10101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-31T06:19:17.000Z","updated_at":"2025-01-31T06:25:08.000Z","dependencies_parsed_at":"2025-01-31T07:25:23.983Z","dependency_job_id":"d53a59e8-bde5-499d-9ac8-295e7b777d32","html_url":"https://github.com/Anshu10101/AI-Powered-Multi-PDF-Chatbot","commit_stats":null,"previous_names":["anshu10101/ai-powered-multi-pdf-chatbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anshu10101%2FAI-Powered-Multi-PDF-Chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anshu10101%2FAI-Powered-Multi-PDF-Chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anshu10101%2FAI-Powered-Multi-PDF-Chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anshu10101%2FAI-Powered-Multi-PDF-Chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anshu10101","download_url":"https://codeload.github.com/Anshu10101/AI-Powered-Multi-PDF-Chatbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245815828,"owners_count":20676977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["faiss","google-gemini-ai","langchain","python-dotenv","streamlit"],"created_at":"2025-02-01T14:19:37.823Z","updated_at":"2025-03-27T09:25:06.925Z","avatar_url":"https://github.com/Anshu10101.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multi-PDFs ChatApp AI Agent 🤖\n\nMeet **MultiPDF Chat AI App**! 🚀 Interact seamlessly with multiple PDFs using **Langchain, Google Gemini Pro \u0026 FAISS Vector DB**, all deployed effortlessly on **Streamlit**. Get **instant, accurate responses** powered by Google's advanced **Gemini AI model**. 📚💬 **Enhance your PDF experience today!** 🔥✨\n\n## 📝 Description\nThe **Multi-PDF Chat AI Agent** is a **Streamlit-based** web application designed to enable interactive conversations with a chatbot. This application allows users to upload multiple **PDF documents**, extract **text data**, and utilize **AI-powered responses** based on the extracted content. It offers a smooth, intuitive experience for **document-based Q\u0026A**.\n\n## 📢 Demo App with Streamlit Cloud (Preview Only)\n\n## 💻 Demo:\n![Chatbot Demo](img/LLMframework.jpg)\n\n## 🎯 How It Works:\n------------\n\n![MultiPDF Chat App Diagram](img/Architecture.jpg)\n\nThe application follows these steps to process and answer your queries:\n\n1. **PDF Loading**: Upload multiple PDFs, and the app extracts their textual content.\n2. **Text Chunking**: The extracted text is divided into smaller chunks for efficient processing.\n3. **Language Model Processing**: AI models convert these text chunks into meaningful embeddings.\n4. **Similarity Matching**: User queries are compared with extracted data to find the best-matching segments.\n5. **AI-Powered Response Generation**: The selected chunks are used by **LLM models** to generate accurate responses.\n\n![Chatbot Output](img/LLMApp.jpg)\n\n---\n## 🌟 Key Features\n\n- **Smart Text Chunking**: Dynamic sliding-window chunking for optimal information retrieval.\n- **Multi-Document Q\u0026A**: Ask questions across multiple PDFs simultaneously.\n- **File Compatibility**: Supports **PDF** and **TXT** files.\n- **AI Model Flexibility**: Works with **Google Gemini Pro, OpenAI GPT-3, Anthropic Claude, Llama2**, and other **open-source LLMs**.\n- **Efficient Vector Search**: Uses **FAISS** for fast similarity search and retrieval.\n- **User-Friendly UI**: Built with **Streamlit** for a seamless user experience.\n\n![LLM Chatbot](img/LLMAgents.jpg)\n\n## 📌 Tech Stack\n\n- **Streamlit** – Interactive web app framework.\n- **Google Gemini AI** – AI-powered conversational model.\n- **LangChain** – Natural Language Processing framework.\n- **PyPDF2** – PDF text extraction.\n- **FAISS** – Efficient similarity search.\n- **Python-dotenv** – Secure API key handling.\n\n---\n## ▶️ Installation Guide\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/AnshulGitHub/Multi-PDFs_ChatApp_AI-Agent.git\n   ```\n2. **Install dependencies:**\n   ```bash\n   pip install -r requirements.txt\n   ```\n3. **Set up API keys:**\n   - Get your **Google API Key** from [Makersuite](https://makersuite.google.com/app/apikey)\n   - Create a `.env` file in the project root and add:\n     ```bash\n     GOOGLE_API_KEY=\u003cyour-api-key-here\u003e\n     ```\n4. **Run the Streamlit app:**\n   ```bash\n   streamlit run app.py\n   ```\n\n---\n## 💡 Usage Instructions\n\nTo interact with **Multi-PDF Chat AI**, follow these steps:\n\n1. Upload multiple PDFs via the sidebar.\n2. Click **\"Process\"** to extract text data.\n3. Enter your queries in the chat input field.\n4. The AI chatbot will provide relevant answers based on the uploaded documents.\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanshu10101%2Fai-powered-multi-pdf-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanshu10101%2Fai-powered-multi-pdf-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanshu10101%2Fai-powered-multi-pdf-chatbot/lists"}