Skip to content

Adding database capabilities to the chat-interface.py to make it more personalized #41

@sagnik-create

Description

@sagnik-create

🐛 Issue: Volatile Local Storage for Chat Data

🔍 Problem

Currently, the chat data is stored in cache storage, which resets every time the website is relaunched. This results in a loss of user context and chat history, negatively impacting the overall user experience.


💡 Proposed Solution

Implement a persistent and scalable database-backed storage system using SQLAlchemy with SQLite to manage user sessions and chat data.


✅ Goals

  • Integrate SQLAlchemy for ORM-based database interaction
  • Use SQLite to manage chat sessions and memory locally (with potential to scale)
  • Create dynamic user-specific tables or entries for storing conversation history
  • Establish clean data retrieval and storage mechanisms for seamless integration with the chatbot engine
  • Enable personalized chatbot experiences by persisting contextual memory per user

🧠 Benefits

  • Persistent chat memory across sessions
  • Personalized experience per user
  • Foundation for scaling up to multi-user or multi-session architectures

📌 Notes

This issue was previously identified but hasn’t been fully implemented.
Kindly assign this to me so I can work on a resolution.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions