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

use semantic chunking to speed up operations #112

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

anishk23733
Copy link
Contributor

@anishk23733 anishk23733 commented Oct 18, 2024

why

If we have many chunks in a page, we often need to wait for each chunk to be processed sequentially (during act or extract). This takes a lot of time since we need to process every chunk, while many chunks may not contain relevant information.

what changed

When a page loads, asynchronously parse the elements and compute their embeddings. Then, when performing an action, order chunks by the ones that contain elements that might be more relevant for the action.

test plan

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.

1 participant