Skip to content

why use the list after split as chunck? #6

Description

@Victoriaheiheihei

https://github.com/webpilot-ai/ChatLongDoc/blob/main/utils.py#L86

why len(text) =len(text.replace("\n", " ").split())?

The chunk is splited by str length in langchain. the chunk is splited by " " in your repositories. does this have any special meannings?

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