CdC-SI / eak-copilot

The official repository of the EAK-Copilot project as part of the Innovation Fellowship 2024.
https://cdc-si.github.io/eak-copilot/
GNU General Public License v3.0
3 stars 0 forks source link

add conversational memory for RAG #190

Open K-Schubert opened 1 month ago

K-Schubert commented 1 month ago

Description

Keep track of k messages in chat history for RAG.

Proposed changes

@tabee we should discuss these features.

tabee commented 1 month ago
  • --> Otherwise chat history might be "mixed" between users if multiple requests are made at the same time.

What you think about:

Session-based Authentication" or "Token-based Session Management.

  1. Session ID Generation When the app is opened, a random session ID is generated, e.g., a string of 5 letters. This session ID is displayed to the user and stored in the app.
  2. Storing Chat Data The chat data is stored in a database under the generated session ID. Each chat message is linked to this session ID.
  3. Loading an Existing Session If a user wants to load an existing session, they enter the 5-letter session ID. The app then loads the corresponding chat data from the database.