Skip to content

Chunk optimization #1

@pacmanincarnate

Description

@pacmanincarnate

I recommend a more advanced chunking system. You ideally want to break text up by sentence or paragraph where possible. chunking by words will split sentences and break the meaning of those sentences. Even breaking up a paragraph can have that effect. Best option would maybe be to look for new lines and if that creates a good chunk, chunk it, if it’s too large, break it at a period in the middle and if it’s too small, check if two paragraphs fits in your context window. It’ll take a little more processing, but it should be fairly arbitrary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions