{"id":16274434,"url":"https://github.com/egpivo/llmchatbot","last_synced_at":"2026-04-16T18:31:11.849Z","repository":{"id":212283534,"uuid":"730698466","full_name":"egpivo/llmchatbot","owner":"egpivo","description":"Chatbot with LLM","archived":false,"fork":false,"pushed_at":"2024-02-05T05:33:49.000Z","size":534,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T14:08:23.717Z","etag":null,"topics":["bentoml","chatbot","chatgpt","langchain","llm"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/llmchatbot/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/egpivo.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","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":"2023-12-12T13:37:40.000Z","updated_at":"2024-04-06T05:29:58.000Z","dependencies_parsed_at":"2024-02-05T19:15:19.199Z","dependency_job_id":null,"html_url":"https://github.com/egpivo/llmchatbot","commit_stats":null,"previous_names":["egpivo/chatbot"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egpivo%2Fllmchatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egpivo%2Fllmchatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egpivo%2Fllmchatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egpivo%2Fllmchatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egpivo","download_url":"https://codeload.github.com/egpivo/llmchatbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247878015,"owners_count":21011158,"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":["bentoml","chatbot","chatgpt","langchain","llm"],"created_at":"2024-10-10T18:28:50.007Z","updated_at":"2026-04-16T18:31:11.843Z","avatar_url":"https://github.com/egpivo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LLM-Chatbot\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/egpivo/llmchatbot/actions\"\u003e\u003cimg src=\"https://github.com/egpivo/llmchatbot/workflows/Test/badge.svg\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/egpivo/llmchatbot\"\u003e \u003cimg src=\"https://codecov.io/gh/egpivo/llmchatbot/graph/badge.svg?token=gtKjUUupSz\"/\u003e \u003c/a\u003e\n  \u003ca href=\"https://hub.docker.com/r/egpivo/chatbot/tags\"\u003e\u003cimg src=\"https://img.shields.io/docker/pulls/egpivo/chatbot\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://hub.docker.com/r/egpivo/chatbot/tags\"\u003e\u003cimg src=\"https://img.shields.io/docker/image-size/egpivo/chatbot\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://pypi.org/project/llmchatbot/\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/llmchatbot.svg?logo=pypi\u0026label=PyPI\u0026logoColor=silver\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://pypi.org/project/llmchatbot/\"\u003e\u003cimg src=\"https://img.shields.io/pepy/dt/llmchatbot\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003clink rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css\" integrity=\"sha512-....\" crossorigin=\"anonymous\" /\u003e\n\n## Installation\n\nTo get the Chatbot Python package by the following commands:\n1. PyPy\n```shell\npip install llmchatbot\n```\n\n2. GitHub repository\n```bash\npip install git+https://github.com/egpivo/llmchatbot.git\n```\n## Serving Automation\nThis repository automates the process of checking and fine-tuning pre-trained models for the Chatbot application. The automation script allows you to customize SpeechT5 and SWhisper models and enables retraining if needed.\n\n### Serving Process Flow\n\n```mermaid\ngraph TD\n  A[Check if Model Exists]\n  B[Fine-Tune Model]\n  C[Load BentoML Configuration]\n  D[Serve the App]\n  E[Check SSL Certificates]\n  F[Generate Dummy SSL Certificates]\n\n  A -- Yes --\u003e C\n  A -- No --\u003e B\n  B --\u003e C\n  C --\u003e D\n  D --\u003e E\n  E -- No --\u003e F\n  E -- Yes --\u003e D\n\n```\n\n### Artifact Folder\nDuring the model serving process, the `artifacts` folder is used to store the BentoML artifacts, essential for serving the Chatbot application.\n## Usage\n### Local Model Serving\n#### Default Model Values\nRun the Chatbot service with default model values:\n```shell\nmake local-serve\n```\n#### Customizing the Serving Process\nCustomize the Chatbot serving process using the automation script. Specify your desired models and options:\n\n```shell\nbash scripts/run_app_service.sh \\\n  --t5_pretrained_model {replace_with_actual_t5_model} \\\n  --t5_pretrained_vocoder {replace_with_actual_t5_vocoder} \\\n  --whisper_pretrained_model {replace_with_actual_whisper_model} \\\n  --is_retraining\n```\n- **Note**: Replace `{replace_with_actual_t5_model}`, `{replace_with_actual_t5_vocoder}`, and `{replace_with_actual_whisper_model}` with your preferred values. Adding the `--is_retraining` flag forces model retraining.\n\n\n### Model Serving via Docker\n#### By Makefile:\n```shell\nmake docker-serve\n```\n\n#### By `docker` CLI\n- DockerHub\n  ```shell\n  docker run -p 443:443 egpivo/chatbot:latest\n  ```\n- GitHub Package\n  ```shell\n  docker run -p 443:443 ghcr.io/egpivo/llmchatbot:latest\n  ```\n### Client Side\nAccess the demo chatbot at `https://{ip}/chatbot`, with the default values being `0.0.0.0` for the `ip`.\n\n- Note: Dummy SSL certificates and keys are created by default for secure communication if `key.pem` and `cert.pem` do not exit in `artifacts/`. Or you can replace them manually.\n\n## Demo \u003ci class=\"fas fa-eye fa-lg\"\u003e\u003c/i\u003e\n- Explore the demo site hosted on Alibaba Cloud via https://egpivo.com/chatbot/.\n![demo.png](artifacts/image/demo_img.png)\n\n- Note: This site is intended for demo purposes only, and there is no guarantee of computing efficiency.\n\n## Remark\n- Reference: [BentoChain Repository](https://github.com/ssheng/BentoChain)\n- **License:** [BSD 2-Clause License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegpivo%2Fllmchatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegpivo%2Fllmchatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegpivo%2Fllmchatbot/lists"}