{"id":20089095,"url":"https://github.com/amanastel/pdf_based_chatbot_ai","last_synced_at":"2025-05-06T02:33:02.607Z","repository":{"id":191682390,"uuid":"684769483","full_name":"Amanastel/PDF_Based_Chatbot_AI","owner":"Amanastel","description":"Developed a web app using LLM models, Langchain, and chatbots for PDF interactions. Users upload PDFs and ask questions, receiving instant chatbot responses for efficient content retrieval.","archived":false,"fork":false,"pushed_at":"2024-11-17T15:18:01.000Z","size":17833,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T07:37:44.495Z","etag":null,"topics":["ai","artificial-intelligence","chatbot","chatgpt","django","github","langchain","llm","machine-learning","mysql","openai","python"],"latest_commit_sha":null,"homepage":"https://drive.google.com/file/d/1bqwJzsjXrEI8prPFzoPNaAwY4DugmXfQ/view","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/Amanastel.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}},"created_at":"2023-08-29T20:20:08.000Z","updated_at":"2024-12-09T08:45:40.000Z","dependencies_parsed_at":"2023-11-28T21:56:41.420Z","dependency_job_id":"5023ecbc-cd3d-41af-92b7-524302f77d36","html_url":"https://github.com/Amanastel/PDF_Based_Chatbot_AI","commit_stats":null,"previous_names":["amanastel/llmdjango","amanastel/pdf_based_chatbot_ai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amanastel%2FPDF_Based_Chatbot_AI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amanastel%2FPDF_Based_Chatbot_AI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amanastel%2FPDF_Based_Chatbot_AI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amanastel%2FPDF_Based_Chatbot_AI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Amanastel","download_url":"https://codeload.github.com/Amanastel/PDF_Based_Chatbot_AI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252609854,"owners_count":21775896,"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":["ai","artificial-intelligence","chatbot","chatgpt","django","github","langchain","llm","machine-learning","mysql","openai","python"],"created_at":"2024-11-13T16:16:24.714Z","updated_at":"2025-05-06T02:32:57.591Z","avatar_url":"https://github.com/Amanastel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chat World\n\n## Introduction\nThis Django project demonstrates how to create a custom user model and define related models for user profiles, PDF documents, and chat messages.\n\n\n\n## Features\nList out the key features of your application.\n- **Advanced Chatbot Integration**: Utilizes cutting-edge Generative AI and advanced language models to power a chatbot that enables users to interact with uploaded PDF documents.\n\n- **PDF Document Upload**: Allows users to upload PDF files, making them accessible for content-based queries.\n\n- **Real-time Responses**: Provides real-time chatbot responses to user queries about the content of uploaded PDF documents.\n\n- **Responsive UI**: Implements a responsive user interface, ensuring a seamless experience across various devices for enhanced accessibility.\n\n- **Chat History**: Designed and implemented a chat history feature, allowing users to revisit previous conversations with the chatbot, fostering a user-friendly interaction.\n\n- **Technology Stack**: Employed Python, Django, PyPDF2, chatbot frameworks, LLM, openAI, and natural language processing libraries to architect and develop this solo project, demonstrating proficiency in these industry-standard technologies.\n\n\n\n\n## Prerequisites\n\nBefore you begin, ensure you have met the following requirements:\n\n- Python (3.x) installed on your system.\n- Django installed (`pip install Django`).\n- Langchain library installed (`pip install langchain`).\n- PyPDF2 library installed (`pip install PyPDF2`).\n- OpenAI API key (set it as an environment variable named `OPENAI_API_KEY`).\n\n\n\n\n## Screenshots\n\n\n\n### Home Page\n![Home Page](https://github.com/Amanastel/PDF_Based_Chatbot_AI/blob/main/assets/Screenshot1.png?raw=true)\n\n### Why choose AI\n![Our Services Page](https://github.com/Amanastel/PDF_Based_Chatbot_AI/blob/main/assets/Screenshot2.png?raw=true)\n\n### Upload PDF Document\n![Upload PDF Document](https://github.com/Amanastel/PDF_Based_Chatbot_AI/blob/main/assets/Screenshot6.png?raw=true)\n\n### Chat History\n![Chat History](https://github.com/Amanastel/PDF_Based_Chatbot_AI/blob/main/assets/Screenshot5.png?raw=true)\n\n\n\n\n\n## Getting Started\n\n\n\n## Installation \u0026 Getting started\nDetailed instructions on how to install, configure, and get the project running.\n\n```bash\n1. Clone the repository: `git clone https://github.com/amanastel/PDF_Based_Chatbot_AI.git`\n2. Navigate to the project directory: `cd PDF_Based_Chatbot_AI`\n3. Create a virtual environment: `python3 -m venv venv`\n4. Activate the virtual environment: `source venv/bin/activate`\n5. Install dependencies: `pip install -r requirements.txt`\n6. Apply database migrations: `python manage.py migrate`\n7. Create a superuser: `python manage.py createsuperuser`\n8. Run the development server: `python manage.py runserver`\n```\n\n\n\n\n\n## APIs Used\n1. Create a superuser to access the admin panel: `python manage.py createsuperuser`\n2. Start the development server: `python manage.py runserver`\n3. Access the admin panel at: `http://localhost:8000/admin/`\n4. Use the admin panel to manage users, profiles, PDF documents, and chat messages.\n\n\n\n## API Endpoints\n- User Registration: `POST /api/register/`\n- User Login: `POST /api/login/`\n- User Profile: `GET /api/profile/`\n- Upload PDF Document: `POST /api/upload-pdf/`\n- List PDF Documents: `GET /api/pdf-documents/`\n- Create Chat Message: `POST /api/chat/create/`\n- List Chat Messages: `GET /api/chat/list/`\n\n## Custom User Serializer\n\nYou can find the `CustomUserSerializer` in the `serializers.py` file under the `llmApp` app directory. This serializer is used for user registration and login.\n\n\n## Models\n\n- `CustomProfile`: Represents user profiles with extended fields (phone and address).\n- `PDFDocument`: Represents uploaded PDF documents associated with users.\n- `ChatMessage`: Represents chat messages with timestamps.\n\n\n## Technology Stack\nList and provide a brief overview of the technologies used in the project.\n\n- Django\n- Python\n- Langchain\n- MySQL\n- Vue\n\n\n\n## Contributing\n\nContributions are welcome! If you find any issues or want to add new features, feel free to open a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famanastel%2Fpdf_based_chatbot_ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famanastel%2Fpdf_based_chatbot_ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famanastel%2Fpdf_based_chatbot_ai/lists"}