{"id":17602521,"url":"https://github.com/mindninjax/ai-chatbot","last_synced_at":"2025-06-17T03:33:37.251Z","repository":{"id":127259231,"uuid":"329689986","full_name":"mindninjaX/AI-Chatbot","owner":"mindninjaX","description":"A simple AI Chatbot implementation using Pytorch and NPL","archived":false,"fork":false,"pushed_at":"2021-04-01T05:27:54.000Z","size":16,"stargazers_count":19,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T09:12:37.712Z","etag":null,"topics":["artificial-intelligence","chatbot","deep-learning","natural-language-processing","python","pytorch"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mindninjaX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-01-14T17:40:55.000Z","updated_at":"2025-03-31T20:55:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"4155c161-10eb-4df6-97bb-fdf72cc29481","html_url":"https://github.com/mindninjaX/AI-Chatbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindninjaX%2FAI-Chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindninjaX%2FAI-Chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindninjaX%2FAI-Chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindninjaX%2FAI-Chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mindninjaX","download_url":"https://codeload.github.com/mindninjaX/AI-Chatbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251674585,"owners_count":21625645,"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":["artificial-intelligence","chatbot","deep-learning","natural-language-processing","python","pytorch"],"created_at":"2024-10-22T13:08:37.506Z","updated_at":"2025-04-30T09:12:43.403Z","avatar_url":"https://github.com/mindninjaX.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n    \u003c!-- \u003cimg src=\"\" alt=\"Screenshot\" width=\"80\" height=\"80\"\u003e --\u003e\n\n  \u003ch3 align=\"center\"\u003eAI Chatbot\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    A simple chatbot powered by Pytorch \u0026 NPL.\n    \u003cbr /\u003e\n    \u003c!-- \u003ca href=\"https://github.com/othneildrew/Best-README-Template\"\u003eView Demo\u003c/a\u003e\n    · --\u003e\n    \u003ca href=\"https://github.com/mindninjaX/AI-Chatbot/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/mindninjaX/AI-Chatbot/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\u003cbr /\u003e\n\u003c!-- TABLE OF CONTENTS --\u003e\n\u003cdetails open=\"open\"\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\n      \u003ca href=\"#about-the-project\"\u003eAbout The Project\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#built-with\"\u003eBuilt With\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#prerequisites\"\u003ePrerequisites\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#customize\"\u003eCustomize\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#roadmap\"\u003eRoadmap\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n    \u003c!-- \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e --\u003e\n    \u003cli\u003e\u003ca href=\"#contact\"\u003eContact\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#resources\"\u003eResources\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n\n## About The Project\n\n![carbon](https://user-images.githubusercontent.com/59148052/106388679-b50bde00-6405-11eb-80d8-b1990000de06.png)\n\n\n- The implementation should be easy to follow for beginners and provide a basic understanding of chatbots.\n- The implementation is straightforward with a Feed Forward Neural net with 2 hidden layers.\nCustomization for your own use case is super easy. Just modify `intents.json` with possible patterns and responses and re-run the training.\n\n### Built With\n\nThis section should list any major frameworks that you built your project using. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.\n\n- [Pytorch](https://pytorch.org/)\n- [Natural Language Toolkit](https://www.nltk.org/_modules/nltk/util.html)\n- [Numpy](https://numpy.org/)\n\n\u003c!-- GETTING STARTED --\u003e\n\n## Getting Started\n\nTo get started with this project, follow the instructions below:\n\n### Prerequisites\n\nTo run and work with this project you need to have the latest version of Python installed in your system.\n\nAlong with Python, we would also need some python modules to work with this project. Check \u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e for instructions on same.\n\n### Installation\n\n1. Clone the repo\n   ```sh\n   git clone https://github.com/mindninjaX/AI-Chatbot\n   ```\n3. Install required packages using `pip install`\n   ```sh\n   pip install torch\n   pip install numpy\n   pip install nltk\n   ```\n4. Uncomment `nltk.download()` \u0026 run **nltk_utlis.py** to install _Punkt Tokenzier model_\n   ```Python\n   import nltk\n   nltk.download()\n   ```\n\n## Usage\nRun `train.py` to train the chatbot\n  ```sh\n  python train.py\n  ```\nThis is create a new file `data.pth` which contains the trained data for our chatbot.\n\nInitiate the chatbot! Run `chat.py`\n  ```sh\n  python chat.py\n  ```\n\n## Customize\nRaw data is present in `intents.json`. Customize this file as per your needs. Just define a new `tag`, possible `patterns`, and possible `responses` for the chat bot. **You have to re-run the training whenever this file is modified.**\n  ```json\n  {\n  \"intents\": [\n    {\n      \"tag\": \"greeting\",\n      \"patterns\": [\n        \"Hi\",\n        \"Hey\",\n        \"How are you\",\n        \"Is anyone there?\",\n        \"Hello\",\n        \"Good day\"\n      ],\n      \"responses\": [\n        \"Hey :-)\",\n        \"Hello, thanks for visiting\",\n        \"Hi there, what can I do for you?\",\n        \"Hi there, how can I help?\"\n      ]\n    },\n    ...\n  ]\n}\n  ```\n\n## Roadmap\n\nSee the [open issues](https://github.com/mindninjaX/AI-Chatbot/issues) for a list of proposed features (and known issues).\n\n\u003c!-- CONTRIBUTING --\u003e\n\n## Contributing\n\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\n\u003c!-- CONTACT --\u003e\n\n## Contact\n\n### Rishabh Singh\n- **Twitter** -  [@mindninjaX](https://twitter.com/mindninjaX)\n- **LinkedIn** - [linkedin/mindninjax](https://www.linkedin.com/in/mindninjax/)\n- **Email** - rishabh.singh@studentambassadors.com\n\n**Project Link:** [https://github.com/mindninjaX/AI-Chatbot](https://github.com/mindninjaX/AI-Chatbot)\n\n\u003c!-- ACKNOWLEDGEMENTS --\u003e\n\n## Resources \u0026 Acknowledgements\n\n- [VS Code](https://code.visualstudio.com/)\n- [Python Setup](https://www.python.org/downloads/)\n- [Python Documentation](https://docs.python.org/)\n- [NLTK Documentation](https://www.nltk.org/_modules/nltk/util.html)\n- [Pytorch Documentation](https://pytorch.org/docs/stable/index.html)\n- [JSON Guide](https://www.json.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindninjax%2Fai-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmindninjax%2Fai-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindninjax%2Fai-chatbot/lists"}