svoi-fr / mirai

Refugee assistant bot
https://docs.danswer.dev/
MIT License
2 stars 1 forks source link

Updating tg-bot module #33

Closed ptitzlabs closed 1 month ago

ptitzlabs commented 1 month ago

Currently, the tg bot is using oneshot qa flow. This requires embedding the message every time a request is made. The bot should instead create sessions - such that the LLM can evaluate if new search is necessary. Prototype is already implemented in CLI chat agent. It has to be implemented in the telegram bot.

Implement the logic implemented here https://github.com/svoi-fr/mirai/blob/main/backend/chattest.py In here https://github.com/svoi-fr/mirai/blob/main/backend/danswer/danswerbot/telegram/listener.py