{"id":15159917,"url":"https://github.com/bushra-07/chat-with-multiple-pdfs","last_synced_at":"2026-02-28T17:04:21.452Z","repository":{"id":253748979,"uuid":"844404963","full_name":"bushra-07/Chat-with-Multiple-PDFs","owner":"bushra-07","description":"An interactive tool to chat with multiple PDFs at once. Upload documents and get quick insights, answers, and information extraction from all your files simultaneously.","archived":false,"fork":false,"pushed_at":"2024-08-19T07:46:37.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-13T22:44:52.827Z","etag":null,"topics":["chatbot","conversational-ai","google-generative-ai","langchain","machine-learning","natural-language-processing","pypdf2","python","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/bushra-07.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":"2024-08-19T07:36:13.000Z","updated_at":"2024-08-19T07:46:40.000Z","dependencies_parsed_at":"2024-08-19T09:03:10.484Z","dependency_job_id":null,"html_url":"https://github.com/bushra-07/Chat-with-Multiple-PDFs","commit_stats":null,"previous_names":["bushra-07/chat-with-multiple-pdfs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bushra-07/Chat-with-Multiple-PDFs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bushra-07%2FChat-with-Multiple-PDFs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bushra-07%2FChat-with-Multiple-PDFs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bushra-07%2FChat-with-Multiple-PDFs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bushra-07%2FChat-with-Multiple-PDFs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bushra-07","download_url":"https://codeload.github.com/bushra-07/Chat-with-Multiple-PDFs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bushra-07%2FChat-with-Multiple-PDFs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017141,"owners_count":26085984,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["chatbot","conversational-ai","google-generative-ai","langchain","machine-learning","natural-language-processing","pypdf2","python","streamlit"],"created_at":"2024-09-26T22:01:59.632Z","updated_at":"2025-10-13T22:44:54.051Z","avatar_url":"https://github.com/bushra-07.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chat with Multiple PDFs 🤖📚\n\nThis project is a **Streamlit-based app** that allows users to chat with the contents of multiple PDF files. It uses **Langchain**, **Google Generative AI**, and **FAISS** for document vectorization, retrieval, and conversational responses.\n\n## Features\n\n- Upload multiple PDFs and extract the text.\n- Vectorize text chunks using Google Generative AI embeddings.\n- Store vectorized text in FAISS for efficient similarity search.\n- Ask questions, and the app retrieves relevant chunks from the PDFs to answer.\n- Integrated conversational AI for detailed and contextual responses.\n\n## Getting Started\n\nFollow these steps to set up and run the project on your local machine.\n\n### Prerequisites\n\nBefore running this project, ensure that you have the following installed:\n\n- Python 3.8 or later\n- Streamlit\n- PyPDF2\n- Langchain\n- FAISS\n- Google Generative AI SDK\n\n### Installation\n\n1. **Clone the repository:**\n\n    ```bash\n    git clone https://github.com/your-username/chat-with-multiple-pdfs.git\n    cd chat-with-multiple-pdfs\n    ```\n\n2. **Set up a virtual environment (optional but recommended):**\n\n    ```bash\n    python3 -m venv venv\n    source venv/bin/activate  # On Windows use `venv\\Scripts\\activate`\n    ```\n\n3. **Install the required dependencies:**\n\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n4. **Create a `.env` file** in the root directory and add your Google API key:\n\n    ```plaintext\n    GOOGLE_API_KEY=your-google-api-key\n    ```\n\n### How to Run\n\n1. **Prepare your environment:**\n    - Make sure you have your Google Generative AI API key ready.\n    - Ensure that your `.env` file contains the key.\n\n2. **Run the Streamlit app:**\n\n    ```bash\n    streamlit run app.py\n    ```\n\n3. **Upload your PDFs**:\n    - Use the sidebar to upload multiple PDF files.\n    - Click the \"Submit \u0026 Process\" button to extract and process the text.\n\n4. **Ask Questions**:\n    - Enter your question in the text input field.\n    - The app will retrieve relevant sections from the PDFs and provide a detailed answer.\n\n### Example Use Case\n\n- Upload a few research papers or documents, and ask specific questions about their contents.\n- The app will return the most relevant sections of the PDFs, providing detailed responses.\n\n### Project Structure\n\n```plaintext\n├── app.py                   # Main application file\n├── .env                     # Environment variables (contains the Google API key)\n├── requirements.txt         # Python dependencies\n└── README.md                # Project documentation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbushra-07%2Fchat-with-multiple-pdfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbushra-07%2Fchat-with-multiple-pdfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbushra-07%2Fchat-with-multiple-pdfs/lists"}