maxime's picture
:wrench:
b19a294
metadata
title: Telegram Chat Chat
emoji: 🤗
colorFrom: gray
colorTo: purple
sdk: gradio
sdk_version: 3.17.0
app_file: app.py
pinned: false
license: mit

Chat with your Telegram Chat!

Understand who you are and your relationships by creating a ChatGPT like experience over your own Telegram chat with LangChain.

Here is a very scientific peer-reviewed mathematical equation:

Your Telegram chats ≈ Your thoughts ≈ You

When have you been the happiest? What triggers you instantly? How could you have been more compassionate? When do you say yes and when do you say no? At what time are you the funniest?

Ask anything you've wanted to know about yourself and your relationship with someone.

Ingest data

From the Telegram Desktop App, export your chat history.

Uncheck all the boxes and make sure you export it in JSON, you will then be able to download a result.json file.

You can then embed the data by running

python ingest_data.py [result.json path]

Running the Application

By running python app.py from the command line you can easily interact with your Telegram Chat through a Gradio Web App.

The original boilerplate is from https://github.com/hwchase17/chat-your-data