Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make upgrading easier #161

Open
BBC-Esq opened this issue Apr 14, 2024 · 1 comment
Open

make upgrading easier #161

BBC-Esq opened this issue Apr 14, 2024 · 1 comment
Labels
enhancement request approved repository owner use only

Comments

@BBC-Esq
Copy link
Owner

BBC-Esq commented Apr 14, 2024

The paths to the databases are put into the config.yaml when created. Make it so the paths are relative if possible so that if a user copies and moves the repository folder that it will still work.

Moreover, add a feature to easily upgrade from within the GUI when there's a new release, which will add/remove/update any dependencies, scripts, etc., but keep intact any databases, embedding models downloaded, etc.

@BBC-Esq BBC-Esq added the enhancement request approved repository owner use only label Apr 14, 2024
@BBC-Esq
Copy link
Owner Author

BBC-Esq commented Apr 14, 2024

Possible HASH all files within a database after it's created and save. This list of hashes of all files can then be consulted, and if all match, revise the path within the config.yaml file to where the database has been moved, if at all. This can also possibly run on startup to verify a file or nothing has changed with the database files that might cause an error.

Perhaps a "verify_database_integrity" function using the HASH values to both verify the integrity upon startup as well as locate the new path where the database files have been moved to if, for example, a user moves the entire folder. This would necessitate updating all other paths in the config.yaml file as well, however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement request approved repository owner use only
Projects
None yet
Development

No branches or pull requests

1 participant