This bot mimics the communication style of a particular person based on their conversations from telegram.
A contextual window is created with the system prompt, the style features of a particular person and the history of the dialogue. Based on this window, an imitation of the communication style is performed.
- Install Ollama
- Edit config (./bot/settings.py)
- Install requirements (poetry)
- run main.py
Tested with saiga_nemo_12b / some other ollama LLMs
- Часть кода взята из проекта ollama-telegram-ai (автор: Kirill Zhosul, лицензия: MIT). В частности, использована реализация API Ollama и переводчика.
https://drive.google.com/drive/folders/16hZ_zdhFZ_PW0cbUw8DF1rCO2tAYq1oV?usp=drive_link