[Feature Request]:Add User Isolation and User-Level Tracking for Documents and Chat Messages #2226
Saravanakumar26
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Do you need to file a feature request?
Feature Request Description
Currently, LightRAG does not support user isolation or user-level tracking.
All uploaded knowledge base documents and chat messages are shared globally across users, and there is no mechanism to identify which user performed specific actions.
This creates issues in multi-user environments, where multiple users are uploading documents and chatting within the same system instance.
Current Limitations:
o There is no database field to record which user uploaded a specific document.
o All uploaded documents are accessible to every user, regardless of who uploaded them.
o Currently, chat messages are saved in the browser’s localStorage, not in the database.
o This means messages are not tied to any user account and are only visible in the browser that created them.
o When another user logs in from a different browser or device, they see a fresh chat history (no persistent or user-based chat storage).
o The system does not maintain any user details in the database.
o There is no way to link documents or chat messages to a specific logged-in user.
Enhancement Request:
Please enhance LightRAG to support user-level isolation, tracking, and persistent chat storage by implementing the following features:
o Add a users table to store basic user information (e.g., username, email).
o Capture and persist user authentication/session information.
o Add a user_id column to the document storage tables.
o Track which user uploaded each document.
o Store chat messages in the database with a user_id reference instead of browser localStorage.
o Show each user only their own chat history when they log in.
Expected Benefits:
• Each user’s data (documents and chats) is isolated and private.
• Uploaded content and chat logs are persistently stored in the database.
• The system becomes multi-user ready with clear ownership, auditability, and better data security.
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions