10000 GitHub - algoritmist/devweek: Чат-бот службы поддержки клиентов RUTUBE
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

algoritmist/devweek

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

devweek

Getting Started

Follow these steps to set up and run the Telegram bot:

Prerequisites

  • Ensure you have Python 3.x installed. You can download it from python.org.
  • Install pip and virtualenv if they are not already installed.

Installation

  1. Clone the repository

    git clone <repository-url>
    cd devweek
  2. Create and activate a virtual environment

    python3 -m venv venv
    source venv/bin/activate
  3. Install dependencies

    pip install -r requirements.txt

Running the Bot

  1. Set up environment variables

    • Create a .env file in the root directory and add your Telegram bot token:
      TG_BOT_TOKEN=your-telegram-b
      6776
      ot-token
      DEEPSKEE_API_KEY=your-deepkseek-api-key (optional)
      
  2. Start the bot

    cd app && python main.py

Additional Commands

  • Deactivate the virtual environment
    deactivate

Project structure

src/
-- app/
---- bot/
------ handlers.py 
------ keyboards.py
------ main.py
------ states.py
------ utils.py
---- ml/
------ db/
-------- df_embed_frida.pkl
-------- embed.pkl
...
------ scripts/
-------- rag_new.ipynb
...
------ llm/
-------- local_deepseek.py
-------- cloud_deepseek.py
-------- llm_factory.py
------ ocr/
-------- ocr.py
------ rag/
-------- issue_processor.py
-------- rag_faq.py

Bot

Rag search with LLM

The ml folder contains several submodules:

  1. rag -- contains the main logic of the issue processor
  2. ocr -- extracts text from uploaded images
  3. llm -- contains llm instances and their configurations used in the project.
  4. scripts -- contains independent scripts for data processing and database generation
  5. db -- contains embeddings for the knowledge-bases in pikle format

Building the project

To build the project running on a local llm use

make local

To run the project with a cloud llm use

make cloud

Provide the DEEPSEEK_API_KEY variable in the .env config.

About

Чат-бот службы поддержки клиентов RUTUBE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 68.9%
  • Jupyter Notebook 31.1%
0