Track all last k messages (mix of autocomplete/RAG)?
Implement user sessions (with user ID, auth token) to store chats in sessions, and display history? --> Otherwise chat history might be "mixed" between users if multiple requests are made at the same time.
--> 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.
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.
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.
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.
Description
Keep track of k messages in chat history for RAG.
Proposed changes
@tabee we should discuss these features.