-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor database storage path handling across modules
- Introduced `DatabaseStorage` class in `utilities/paths.py` to encapsulate logic for managing database storage paths. - Supports app-specific storage directories with default or custom configurations. - Ensures consistent handling and directory creation. - Updated `knowledge_storage.py`: - Replaced direct calls to `db_storage_path()` with `DatabaseStorage` usage. - Adjusted initialization to accept `DatabaseStorage` as a parameter. - Updated `kickoff_task_outputs_storage.py`: - Migrated to `DatabaseStorage` for path management. - Simplified constructor by removing hardcoded paths. - Updated `ltm_sqlite_storage.py`: - Integrated `DatabaseStorage` for database path handling. - Enhanced consistency with other storage modules. - Updated `rag_storage.py`: - Refactored to use `DatabaseStorage` for managing storage paths. - Improved maintainability by consolidating path logic. - Removed outdated `db_storage_path()` function and related utilities in `utilities/paths.py`. - Adjusted import paths and parameter handling in all affected modules. - Reduced redundant code and improved modularity of storage path management.
- Loading branch information
1 parent
3dc4428
commit b418cb5
Showing
5 changed files
with
46 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters