Skip to content

Semantic Merging #19

Description

@strawgate

While semantic splitting is extremely valuable, in certain frameworks like Langchan, llama index, and docling you can often find yourself having the opposite problem when parsing markdown or html that your element parser has produced lots of very small elements and you need to figure out a merging strategy.

Often times this merging strategy is based on header level or some other heuristic.

Once it has been determined that chunks should be merged, strategies like inlining headers and merging metadata can be employed without fear of the inlined header ending up in the wrong chunk.

It would be really great if semchunk offered some helpers to help determine if merging two or more chunks is a good idea

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions