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

feat: Unstructured elements splitting example #169

Merged
merged 3 commits into from
Feb 26, 2024

Conversation

simjak
Copy link
Member

@simjak simjak commented Feb 23, 2024

Example of how we can use a Rolling window splitter with Unstructured library.

  • Partition file using Unstructured
  • Group elements by title (Exclude invalid titles)
  • Create chunks from Unstructured elements using the semantic splitter
  • Visualize the text

Example notebook:
docs/examples/unstructured-element-splitter.ipynb

image

@simjak simjak self-assigned this Feb 23, 2024
Copy link

codecov bot commented Feb 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.33%. Comparing base (4feb431) to head (6b6fbaf).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #169   +/-   ##
=======================================
  Coverage   78.33%   78.33%           
=======================================
  Files          41       41           
  Lines        1943     1943           
=======================================
  Hits         1522     1522           
  Misses        421      421           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@jamescalam jamescalam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great work @simjak :)

@jamescalam jamescalam merged commit 01eb8d7 into main Feb 26, 2024
8 checks passed
@jamescalam jamescalam deleted the simonas/unstructured-splitting-example branch February 26, 2024 05:56
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.

None yet

2 participants