Skip to content

jolackner/telegram_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

A Minimalist Telegram Bot for Document Queries

A simple Telegram Bot that answers questions about a pdf document - in this example, guidelines of the "Geneva Hospice General". It tries to answer any question on this topic in Ukrainian, as Ukrainians newly arriving to Geneva might find info on social services etc useful.
The underlying document is written in dense French legalese. The answers try to be a bit more intellegible :)

The code could be easily adapted to answer questions to any other document. In order to do this, you would need to convert your document or documents to a searchable vector database. This LangChain tutorial shows how.

DISCLAIMER: this is NOT an official bot by the Hospice General. Any info you take from this bot should be confirmed by getting in contact with the Hospice General.

In order to make this or a similar bot, you need:

  • an OpenAI account and token
  • a Telegram account and token
  • (optionally) a Google Translate account and credentials
  • a hosting platform that can serve the bot, for example on Pythonanywhere.

This bot makes use of the wonderful LangChain framework
It takes advantage of the python telegram-bot wrapper
The code has been adapted from this template.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages