This project is a Telegram chatbot that integrates with Groq Inc's cloud API to provide inference results based on user inputs. The bot interacts with users, allowing them to choose from various models and input their data to get predictions or insights from the selected model.
- Model Selection: Users can choose from multiple models such as
Gemma-7b-it
,Llama3-8b
,Mixtral-8x7B
, andLlama3-70B
. - Dynamic Inference: After selecting a model, users can input their data, and the bot fetches the inference result from Groq Inc's API.
- User-Friendly Interaction: Simple and intuitive conversation flow with Telegram bot commands.
Follow these instructions to set up and run the bot on your local machine.
- Python 3.8 or higher
- A Telegram bot token from BotFather
- A Groq API key
-
Clone the repository:
git clone https://github.com/vvkmulukutla/grotel.git cd grotel
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Create and configure the
.env
file:TELEGRAM_BOT_TOKEN=your_telegram_bot_token GROQ_API_KEY=your_groq_api_key
Start the bot by running the following command:
python -m bot.main
Once the bot is running, you can interact with it on Telegram:
- /start: Initiate the bot and choose a model.
- Model Selection: Choose from
Gemma-7b-it
,Llama3-8b
,Mixtral-8x7B
, andLlama3-70B
. - Input Data: Enter the data for which you need the inference.
- Receive Results: Get the inference result from the selected model.
We welcome contributions to enhance this project. Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to customize this README.md
to better fit your project's specifics. This file aims to provide a clear and comprehensive guide to users and contributors.