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

fix: restore index back when continue process #85

Merged
merged 2 commits into from
Feb 14, 2023
Merged

fix: restore index back when continue process #85

merged 2 commits into from
Feb 14, 2023

Conversation

mefengl
Copy link
Contributor

@mefengl mefengl commented Feb 14, 2023

I don't know why there needs to be a store.index = None, but I got an error when continuing the process, so I restored the index before continuing;

But that's only fixed the index issue.

Another problem is there is no error catch for the store.add_texts([i.page_content], metadatas=[i.metadata]) in the except block, so if 10 seconds is not enough (maybe set it to 60?), then the second error will be thrown out, and this time, no try/except for this one

@mefengl mefengl marked this pull request as draft February 14, 2023 14:13
@mefengl
Copy link
Contributor Author

mefengl commented Feb 14, 2023

60 seconds works nicely for me. So I add that change to this pull request too

@dartpain
Copy link
Contributor

Oh nice, thank you, definitely

@mefengl mefengl marked this pull request as ready for review February 14, 2023 14:30
@dartpain dartpain merged commit a61fd87 into arc53:main Feb 14, 2023
This pull request was closed.
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.

2 participants