ibnkir / adm_codex_gpt_bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

for running bot execute:

- create json.config with real tokens

- python3 tg_bot.py

- if you already has installed packages - run prepare_data.py first for excluding dependecies conflicts

For updating data

- download kodex and put text into assets/kodap.txt

- run python3 prepare_data.py

Bot uses vectorizations:

- tf-idf

- bert LABSE from huggingface hub

Bot uses gpt-4 OpenAI model for generating anwer uppon extracted context. You need OpenAI api token.

Bot doesn't use Llamaindex or other frameworks.

About


Languages

Language:Python 100.0%