Skip to content

GeneralR3d/Rachel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rachel

LLM-based conversational Telegram bot aiming to mimic human texting behaviour. Rachel is a singapore girl!

Cool things

  • Faux typing indicator and delays between messages
  • Conversational memory using summarisation models (using a technique similar to this)
  • A separate bot to manage the bot's "context" (instructions on writing responses) from within Telegram (/set_context, /get_context)
  • Manage conversation history using commands from within Telegram (/update_history, /clear_history)

Requirements

  • Python 3 (tested on 3.9)
  • A separate Telegram user account from your own, i.e. a second phone number to register for one (or use a service like Textverified)

Usage

  1. Clone repo, install dependencies in requirements.txt
  2. Rename template.env to .env
  3. Create a Telegram user account and obtain its API ID and hash
  4. Create a Telegram bot (message @BotFather) and obtain its bot token
  5. Create a Google Gemini API for free account and get your API key
  6. Get your personal Telegram account's user ID (not that of the bot you created earlier) (message @userinfobot)
  7. Update .env with all above information
  8. Run main.py

Future features planned

  1. Different personalities for different occasions (start with enthusiastic vs normal)
  2. Trigger for enthusiastic mode is when messages per min > threshold (then reduce typing delay)
  3. set random timer to be online after receiving messages
  4. For each group, store what you know about each user based on what they have said (long term memory)
  5. Long term: an agent inside the bot that rewrites the system prompt based on new information that may have shaped its world view, or emotions it might have felt from the interactions with other people

About

Hey! My name is Rachel, your typical Singaporean girlie who loves to gossip as much as you do! Come talk to me on telegram!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%