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

Avoid saving when indices are not changed #19

Merged
merged 1 commit into from Apr 20, 2023

Conversation

shibayu36
Copy link
Owner

Closes: #4

At present, VectorStore saves an index every time save is called. It's the reason that ./chat-hatenablog make-index command is slow when updating index again.

This PullRequest introduces dirty_flag to avoid unnecessary saving an index to file.

@shibayu36 shibayu36 self-assigned this Apr 20, 2023
@shibayu36 shibayu36 merged commit 8a44b4d into main Apr 20, 2023
1 check passed
@shibayu36 shibayu36 deleted the save-only-when-indices-changed2 branch April 20, 2023 00:55
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.

Save only when indices change
1 participant