[Feature]: Pull request for Adding database capabilities to the chat-interface.py to make it more personalized #41 #51
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π Pull Request: Implement Persistent Chat Storage with SQLAlchemy
π Related Issue
Closes #41 β Volatile Local Storage for Chat Data
π Summary
This PR replaces the existing cache-based chat data storage mechanism with a persistent solution using SQLAlchemy and SQLite. The goal is to retain user chat history across sessions and enhance personalization.
π§ Whatβs Implemented
SQLAlchemy
ORM for structured database interactionπΈ Demo (Optional)
Table creation code in db.py
Testing of the Database through DB Browser
Messages are stored in separate Database and new database is created for each user that can be retrieved using proper module functions
β Checklist
π¬ Additional Notes
SQLite
for local persistence. Can be upgraded to PostgreSQL or another RDBMS for production.πββοΈ Request
Please review the changes and provide feedback. Iβd be happy to iterate further based on suggestions!