GithubHelp home page GithubHelp logo

hard-chill-response's Introduction

hard-chill-response's People

Contributors

chelovek760 avatar trollknurr avatar evvfebruary avatar

Stargazers

Khubbatulin Mark avatar Dmitriy Lapin avatar  avatar

Watchers

 avatar

hard-chill-response's Issues

US_2: Exp of prompting for users

"As a user, I want to interact with the bot in the simplest possible way, using templates / ready-made promts / "simple" promts and get the most complete and accurate result"

Based on research here and here

  1. Before user input - hidden prepromt for model role "as an expert in next domain, ..." ("first chains" ref here https://www.promptingguide.ai/ru/techniques/prompt_chaining or like here https://github.com/rodion-m/awesome_ai_for_programmers?tab=readme-ov-file#царь-промпты)
  2. Healthy prompt injections - integrate ref here https://github.com/rodion-m/awesome_ai_for_programmers?tab=readme-ov-file#промпт-тюнинг
  3. Input format - 1-3 steps with pre-made buttons with already prepared prompts to set up a follow-up model response
  4. Input format - additional step with free text input
  5. Output format - pre-made buttons for text and table variants of output - maybe part of pnt. 2

Add CI

Check code quality withmake lint command

Arch: Port for user question

User ask question somehow (telegram for now) and recevie an comprehensive answer, with documents or citations from them

Pydantic.dataclass trouble with Pycharm

Succesfully found one small inconvenience provided by using pydantic dataclasses.

image

Not a big news, because JetBrains already aware of this case, bring the proof.

As a workaround you can install Pydantic plugin to Pycharm for now, not a best solution but it brings away annoying yellow underline.

Vector Database Landing Mission

Based on QA with RAG user story we definetely want to put bunch of embeddings somewhere 🧺

LangChain already have interfaces for vast amount of vector stores 💝

Hexagonal architecture allows us not to think about a specific tool yet ( OpenSearch / Clickhouse / ChromaDb / etc ).

I will wrap up the implementation of ports for interacting with vector storage firstly, and than we can choose solution according of our restrictions and inner wishes.

US_3: Exp of knowledge fullness and correctness for users

"As a user, I want to have the most complete and most correct answers based on the documents used"

  1. RAG - using advanced flow for processing text and tables in documents (ref here)
  2. RAG - implement RAPTOR as a basic arch of all documents (ref here)
  3. RAG - getting reference list from sources and their short description + original file name

Arch: Ports for ingestion of text documents

In telegram we can ingest many types of documents:

application.add_handler(MessageHandler(filters.Document.Category('application/pdf'), downloader))
application.add_handler(MessageHandler(filters.Document.Category('application/msword'), downloader))
application.add_handler(MessageHandler(filters.Document.Category('application/vnd.openxmlformats-officedocument.wordprocessingml.document'), downloader))
application.add_handler(MessageHandler(filters.Document.Category('application/vnd.ms-powerpoint'), downloader))
application.add_handler(MessageHandler(filters.Document.Category('application/vnd.openxmlformats-officedocument.presentationml.presentation'), downloader))
application.add_handler(MessageHandler(filters.Document.Category('text/plain'), downloader))

Application need input port for documents and implement different adapters for different doc types.

So ports wanted

US_1: Exp of work with files for users

"As a user, I want to be able to upload text documents to the repository and receive responses from the bot according to the information in these text documents"

  1. Document upload - shared per client, access via a tg-bot (upload to files - ref https://github.com/sazonovanton/SirChatalot#files )
  2. Document upload - single-level storage (without folders), limited set of formats (.txt)
  3. Document processing - processing of received documents begins asynchronously to the operation of the tg-bot
  4. Document processing - push to the tg-bot with the file name (?) after including it in the storage - ** notifying all users? There will be spam, use timer or separated command in a tg-bot /check_files**
  5. Bot answers - automatic updating (?) with the inclusion of document embeddings in the answers - idk, do I need additional squats with a context reboot?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.