Summary
The Persistent Storage feature allows users to keep their uploaded documents available across browser sessions, even after logging out or closing the browser. Previously, all uploaded documents were cleared on logout, but with this feature enabled, documents remain accessible until the user chooses to delete them. This persistence is optional and controlled via a toggle in the settings. The system uses local IndexedDB storage, ensuring that all data remains on the user’s device for privacy and security. By default, persistence is OFF to prioritise privacy, and users can enable it according to their needs. Multi-tenant support and storage usage visualisation are included to enhance usability and transparency for all users.
Use Case
Scenario:
A user is building a personal knowledge base over time by uploading various documents for reference and search. Previously, every logout would clear their session, causing loss of all uploaded material. With Persistent Storage enabled, the user can log out, close the browser, or even restart their device, and their documents will remain available when they next log in. This is particularly valuable for professionals who need to manage ongoing projects, research, or case files without repeatedly re-uploading documents.
Benefits:
- Documents survive logout and browser restarts.
- Users can accumulate and manage a long-term knowledge base.
- No server-side storage: all data stays on the user’s device for maximum privacy.
Walkthrough
Enabling Persistent Storage
- Click the Settings icon (⚙️) in the top right of the application.
- Navigate to the Chat Settings section.
- Toggle Persistent storage to ON.
- The page will reload, and documents uploaded from this point will remain after logout.
Uploading and Managing Documents
- Once persistence is enabled, upload documents as usual.
- Uploaded documents are stored in the local IndexedDB and will not be cleared on logout.
- To view or manage documents, open the Document Manager UI, where you can:
- List all documents with metadata (name, size, date added, source)
- Delete individual documents or clear all documents
- Filter or search the document list
- Monitor storage usage with a visual indicator.
Disabling Persistent Storage
- If you turn the persistence toggle OFF, all documents will be cleared on logout.
- This ensures privacy if you no longer wish to retain documents between sessions.
Storage Information
- The system provides a storage usage chart and detailed statistics.
- You can export your collections as a JSON backup for safekeeping or migration.
Note:
Persistent Storage is a client-side feature. No documents are uploaded to any server unless explicitly exported by the user. This ensures compliance with privacy requirements and gives users full control over their data.