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

init_database.py 增加 --import-db 参数,支持在版本升级时尽可能重用向量库 #1951

Merged
merged 2 commits into from Nov 2, 2023

Conversation

liunux4odoo
Copy link
Collaborator

@liunux4odoo liunux4odoo commented Nov 2, 2023

init_database.py 增加 --import-db 参数,在版本升级时,如果 info.db 表结构发生变化,但向量库无需重建,可以在重建数据库后,使用本参数从旧的数据库中导入信息。

$ cp /{KB_ROOT_PATH/info.db /path/to/info.bak.db
$ python init_database.py --clear-tables --import-db /path/to/info.bak.db
# fill columns data manually

@liunux4odoo liunux4odoo merged commit 554122f into chatchat-space:dev Nov 2, 2023
@liunux4odoo liunux4odoo deleted the feat branch November 2, 2023 06:47
@liunux4odoo liunux4odoo changed the title Feat init_database.py 增加 --import-db 参数,支持在版本升级时尽可能重用向量库 Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant