refactor: Transition to SQLAlchemy for database management

- Replaced SQLite direct connections with SQLAlchemy ORM for better abstraction and maintainability.
- Introduced new database models for 'Analysis' and 'Metadata' with appropriate fields.
- Enhanced database initialization and session management.
- Updated methods for saving, retrieving, and deleting analysis and metadata records to use SQLAlchemy sessions.
This commit is contained in:
boladeE
2025-04-23 14:27:15 +01:00
parent f4cb9dfa92
commit 932f76b603
2 changed files with 130 additions and 148 deletions
+2 -1
View File
@@ -5,4 +5,5 @@ pinecone-client==3.0.2
cohere==4.47
groq==0.4.2
python-dotenv==1.0.1
pydantic==2.6.3
pydantic==2.6.3
sqlalchemy==2.0.27