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

Context segments #58

Merged
merged 5 commits into from
Nov 4, 2023
Merged

Context segments #58

merged 5 commits into from
Nov 4, 2023

Conversation

apirrone
Copy link
Owner

@apirrone apirrone commented Nov 1, 2023

When scrolling a page, the the text should be fused across the whole "scrolling session" in order to give a complete context to the LLM.

This is done by fusing the texts by detecting overlap between paragraphs.

The sqlite database still contains frame by frame data for the search function, but the vectorb only contains segments of context now, for improved LLM relevance.

@apirrone apirrone self-assigned this Nov 1, 2023
@apirrone apirrone requested a review from SteveNguyen November 1, 2023 10:21
@apirrone apirrone merged commit e8a8aed into dev Nov 4, 2023
@apirrone apirrone linked an issue Nov 4, 2023 that may be closed by this pull request
@apirrone apirrone deleted the segments branch November 4, 2023 13:52
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.

[Backend] Smart fusing of frames into segments in db
1 participant