-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f02831
commit b10ba23
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
### tg-finbot | ||
|
||
A telegram bot to receive texts, images or pdfs and answer questions accordingly using LLMs. | ||
|
||
#### Installation | ||
Install dependencies through pip | ||
``` | ||
pip install -r requirements.txt | ||
``` | ||
|
||
#### Configuring a Telegram bot | ||
On Telegram hit to [@BotFather](https://t.me/BotFather) initiate your own bot and obtain ```BOT_TOKEN, BOT_USER```. | ||
|
||
Example ```config/config.py``` with necessary keys and values. | ||
```python | ||
from typing import Final | ||
|
||
BOT_TOKEN: Final = 'yourbottoken' | ||
BOT_USER: Final = '@username' | ||
APIURL: Final = 'llmapiendpoint' | ||
VLLM: Final = 'mistral-nemo' | ||
BEARER: Final = "Bearer bearertokenhere" | ||
``` | ||
|
||
#### Backend | ||
Run the backend of bot by | ||
``` | ||
python main.py | ||
``` | ||
Output | ||
``` | ||
Bot started... | ||
Bot polling... | ||
``` | ||
|
||
#### Example Usage | ||
Once your bot is running as well as your API is serving properly. Start interacting with your bot. |