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

Add materialize read reliability #1094

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

Conversation

dhruvkaliraman7
Copy link
Contributor

1. MaterializeReadReliability: A new class that enables reliable batch processing of materialized files by:

  • Tracking already processed files

  • Limiting batch sizes

  • Supporting incremental processing through batch resets

  • Maintaining state between batch executions

2. Added utility functions:

  • name_from_docid: Custom naming function using path-based SHA256 hashes

  • docid_from_path: Generates document IDs(SHA 256) from path

  • doc_only_to_binary: Serialization helper

lib/sycamore/sycamore/docset.py Outdated Show resolved Hide resolved
lib/sycamore/sycamore/plan_nodes.py Outdated Show resolved Hide resolved
lib/sycamore/sycamore/docset.py Outdated Show resolved Hide resolved
lib/sycamore/sycamore/materialize.py Outdated Show resolved Hide resolved
lib/sycamore/sycamore/materialize.py Outdated Show resolved Hide resolved
lib/sycamore/sycamore/materialize.py Outdated Show resolved Hide resolved
lib/sycamore/sycamore/tests/unit/test_materialize.py Outdated Show resolved Hide resolved
lib/sycamore/sycamore/tests/unit/test_materialize.py Outdated Show resolved Hide resolved
lib/sycamore/sycamore/tests/unit/test_materialize.py Outdated Show resolved Hide resolved
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.

3 participants