Skip to content

feat/group elements by parent_id #1489

Open
@ron-unstructured

Description

@ron-unstructured

Is your feature request related to a problem? Please describe.
Following up with the document hierarchy implementation, it'll be helpful to have a built-in function to group elements with the same parent_id.

Describe the solution you'd like
Similar to chunk_by_title, but the parent type is not always a Title.

Describe alternatives you've considered
Group elements with the same parent_id and assign the previous element as the parent where parent_id is None.

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions