{"id":20332170,"url":"https://github.com/lsyurea/ai_chatbot","last_synced_at":"2026-04-02T03:08:33.528Z","repository":{"id":222839795,"uuid":"758506669","full_name":"lsyurea/AI_ChatBot","owner":"lsyurea","description":"QueryAI with GPT turbo, a more intuitive interface","archived":false,"fork":false,"pushed_at":"2024-05-12T17:45:17.000Z","size":1170,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T14:33:58.727Z","etag":null,"topics":["docker","docker-compose","docker-image","mantine","mongodb","nextjs","openai","python3","tailwindcss","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/lsyurea.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-02-16T13:23:49.000Z","updated_at":"2024-11-07T04:17:33.000Z","dependencies_parsed_at":"2024-03-01T05:27:11.987Z","dependency_job_id":"241fb5b4-d9ee-4581-bcef-ad2e70987fe4","html_url":"https://github.com/lsyurea/AI_ChatBot","commit_stats":null,"previous_names":["lsyurea/ai_chatbot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lsyurea/AI_ChatBot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsyurea%2FAI_ChatBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsyurea%2FAI_ChatBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsyurea%2FAI_ChatBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsyurea%2FAI_ChatBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsyurea","download_url":"https://codeload.github.com/lsyurea/AI_ChatBot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsyurea%2FAI_ChatBot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"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":["docker","docker-compose","docker-image","mantine","mongodb","nextjs","openai","python3","tailwindcss","typescript"],"created_at":"2024-11-14T20:25:19.805Z","updated_at":"2026-04-02T03:08:33.504Z","avatar_url":"https://github.com/lsyurea.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI_ChatBot\n\n## Introduction\n\nThis is a simple AI chatbot that uses GPT 3 turbo engine to generate responses.\nThis project has a front-end folder and a back-end folder. The front-end folder contains the code for the user interface and the back-end folder contains the code for the server and the GPT 3 engine.\n\n## Frontend\n\nI will use NextJS with tailwindcss to build the frontend of the chatbot.\n\n## Installation for the frontend\n\nFirst, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n# or\nbun dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n## Demo\n\n### Our Chat\n\n![Demo](\u003cFrontend/docs/chat.png\u003e)\n\n## Our Dashboard\n\n![Demo](\u003cFrontend/docs/dashboard.png\u003e)\n\n## Backend\n\nI will use Python \u003e= 3.8, FastAPI, Pydantic Beanie and GPT 3 engine to build the backend of the chatbot.\n\n\n## Installation for the backend\n\nDownload the project and navigate to the backend folder. \nRun ```docker compose build```.\nThen run ```docker compose up -d``` to start the application in detached mode.\n\n## api routes\n\nThe api routes are specified by the openapi schema. You can access the routes via \u003chttp://localhost:80\u003e\nIf docker is not working as expected, go to the debugging section. With the debugging section, you can access the api routes via \u003chttp://localhost:8000\u003e\nOnce the localhost is started, you can access the api routes via \u003chttp://localhost:8000/docs\u003e\nThis is an example of how the api routes are accessed using postman.\n![example](\u003cBackend/docs/example.png\u003e)\n![example](\u003cBackend/docs/exampletwo.png\u003e)\n\n## Usage\n\nMongoDB is running on port 27017.\n\n## Debugging\n\nCurrently the application in docker is working as expected.\nIf the docker fails as a result of different port names of mongo in dp.py, it is possible to bypass it.\nOn top of running docker compose up -d, you will need to run the following commands to start the application and access the api.:\n\n```cd app \u0026\u0026 uvicorn main:app --host 0.0.0.0 --port 8000 --reload```\n\nNote that this means that the api routes will be accessible via \u003chttp://localhost:8000\u003e\n\nAlternatively, you can run the following command to start the application:\n\n```cd app \u0026\u0026 python3 run.py```\n\n## Closing the application\n\nRun ```docker compose down``` to stop the application.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsyurea%2Fai_chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsyurea%2Fai_chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsyurea%2Fai_chatbot/lists"}