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

Large document fix #6

Closed
jamescalam opened this issue May 19, 2024 · 0 comments · Fixed by #7
Closed

Large document fix #6

jamescalam opened this issue May 19, 2024 · 0 comments · Fixed by #7
Assignees
Labels
bug Something isn't working

Comments

@jamescalam
Copy link
Member

Large documents chunking memory error

@ashraq1455 encountered an error where if a document were sufficiently large enough the worker would shutdown. The suspected cause was due to our semantic_chunkers.StatisticalChunker encoding sentence embeddings and storing all of them in-memory at the same time for the chunking methodology to run.

The proposed solution here would be to add a “rolling window” of focus that embeds a maximum number of sentences at any one time. This fix should be applied to both ConsecutiveChunker and StatisticalChunker in the semantic_chunkers library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants