{"id":25282281,"url":"https://github.com/monarch1108/pdf_chatbot","last_synced_at":"2025-04-06T13:19:17.088Z","repository":{"id":276976101,"uuid":"930917934","full_name":"MONARCH1108/pdf_Chatbot","owner":"MONARCH1108","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-11T12:36:32.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T13:40:07.045Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","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/MONARCH1108.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-02-11T12:31:43.000Z","updated_at":"2025-02-11T12:36:35.000Z","dependencies_parsed_at":"2025-02-11T13:40:21.514Z","dependency_job_id":"1252c5b9-ea83-4b0f-8ad9-3b782aa5e7f3","html_url":"https://github.com/MONARCH1108/pdf_Chatbot","commit_stats":null,"previous_names":["monarch1108/pdf_chatbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MONARCH1108%2Fpdf_Chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MONARCH1108%2Fpdf_Chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MONARCH1108%2Fpdf_Chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MONARCH1108%2Fpdf_Chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MONARCH1108","download_url":"https://codeload.github.com/MONARCH1108/pdf_Chatbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485294,"owners_count":20946399,"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":[],"created_at":"2025-02-12T19:33:58.207Z","updated_at":"2025-04-06T13:19:17.060Z","avatar_url":"https://github.com/MONARCH1108.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDF Chatbot\n\n## Overview\n\nPDF Chatbot is a web application that allows users to upload a PDF containing medical symptoms and interact with a chatbot that references the document's content to provide accurate responses. This system integrates Natural Language Processing (NLP) and AI to process and analyze the uploaded medical information.\n\n## Technologies Used\n\n- **Frontend**: HTML, CSS, JavaScript\n    \n- **Backend**: Python (Flask, Flask-CORS)\n    \n- **PDF Processing**: PyMuPDF (Fitz)\n    \n- **Chatbot Logic**: NLP using spaCy\n    \n- **AI Model**: Google Generative AI (Gemini)\n    \n\n## Features\n\n- Upload a PDF containing medical symptoms.\n    \n- Extract and preprocess text from the PDF.\n    \n- Utilize NLP techniques to clean and analyze the text.\n    \n- Generate intelligent responses using Google Gemini AI.\n    \n- Provide accurate symptom-based answers using chatbot integration.\n\n![image](https://github.com/user-attachments/assets/57e3a085-6704-404a-a70f-02bb3bacb7d0)\n\n## Workflow\n\n1. **PDF Upload**: User uploads a PDF document.\n    \n2. **Text Extraction**: Fitz (PyMuPDF) extracts text from the uploaded PDF.\n    \n3. **Text Preprocessing**: The extracted text undergoes tokenization, punctuation removal, lowercasing, whitespace cleanup, and lemmatization using spaCy.\n    \n4. **AI Processing**: The cleaned text is fed into Gemini AI with constraints to ensure responses are strictly based on the provided content.\n    \n5. **User Interaction**: The chatbot responds to user queries based on the medical symptoms mentioned in the uploaded document.\n    \n6. **Frontend Integration**: A user-friendly web interface enables seamless interaction with the chatbot.\n\n   ### Steps to Run\n\n1. Navigate to the project directory:\n    \n    ```\n    cd PDF_Chatbot\n    ```\n    \n2. Install dependencies:\n    \n    ```\n    pip install -r requirements.txt\n    ```\n    \n3. Run the Flask application:\n    \n    ```\n    python app.py\n    ```\n    \n4. After running `app.py`, the Flask development server will start, and you will see an output similar to:\n    \n    ```\n    Running on http://127.0.0.1:5000/\n    ```\n    \n5. Open a web browser and navigate to `http://127.0.0.1:5000/` to use the application.\n\n   ## Contribution\n\nContributions are welcome! Feel free to fork the repository and submit pull requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonarch1108%2Fpdf_chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonarch1108%2Fpdf_chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonarch1108%2Fpdf_chatbot/lists"}