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): adding element index as metadata when partitioning by elem #378

Closed
lambda-science opened this issue Feb 8, 2024 · 1 comment
Labels
feature request Ideas to improve an integration

Comments

@lambda-science
Copy link
Contributor

Is your feature request related to a problem? Please describe.
With unstructured we can do partition: one doc per file, one doc per page or one doc per elem.
When doing one doc per elem there is no way to track orders of element coming from a same doucment.
This informations can be usefull for example for a ContextExpander component.
Let's say you retrieve an element, you can retrieve also the previous and next element to expand the current context .

Describe the solution you'd like
Just automatically add index metadata.
I will do a PR.

@anakin87
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Ideas to improve an integration
Projects
None yet
Development

No branches or pull requests

2 participants