Automatically Create and Deploy Large Language Model (LLM) Telegram Bots with RAG Architecture
AutoDeploy LLM Telegram Bot is an innovative project designed to simplify the creation and deployment of Large Language Model (LLM) Telegram bots, specifically utilizing the Retrieval-Augmented Generator (RAG) architecture. With this tool, users can effortlessly input context, integrate external resources, and automatically generate and deploy a functional LLM Telegram bot, ready to be added to their Telegram account.
- Automatic Deployment: Seamless creation and deployment of LLM Telegram bots.
- RAG Architecture Support: Leverages the powerful Retrieval-Augmented Generator model for enhanced conversational capabilities.
- Customizable Context: Input your specific context to tailor the bot's understanding and responses.
- External Resource Integration: Enhance the bot's knowledge base with external resources.
- User-Friendly Interface: Designed for ease of use, from setup to deployment.
- Telegram API Bot Token: Obtain a bot token from the BotFather.
- Basic Understanding of LLMs and Telegram Bots: Helpful but not required.
- Clone this repository:
git clone https://github.com/sinanazem/AutoDeploy-LLM-Telegram-Bot.git
- Navigate to the project directory:
cd AutoDeploy-LLM-Telegram-Bot
- Install dependencies:
pip install -r requirements.txt
- Configure your
config.json
with your Telegram API Bot Token. - Run the deployment script:
python deploy_bot.py
- User Input: Context and external resources are collected through a user interface.
- LLM Model Generation: The system automatically generates a RAG LLM model based on the input.
- Telegram Bot Creation: A Telegram bot is created using the generated LLM model.
- Deployment: The bot is deployed and ready for use.
- Open
context.json
- Input your desired context in the formatted fields
- Save changes
- Open
resources.json
- Add URLs or paths to your external resources
- Save changes
- Run
python generate_llm_bot.py
- The system will automatically create and configure your RAG LLM bot
- Open Telegram and search for
@BotFather
. - Follow the in-app instructions to add your newly deployed bot.