Skip to content

Incorrect documentation in recursive textsplitter/NewRecursiveCharacter #1188

Open

Description

@teddysupercuts

This comment says:

But I could not find anywhere in the codebase that this default is set, and when I passed in 4000, I got super different behavior.

Could this comment be out of date?

I think the actual value is 512

_defaultTokenChunkSize = 512

ChunkSize: _defaultTokenChunkSize,

I would be happy to fix this. The incorrect info is in the docs as well:

Image

Activity

  1. teddysupercuts commented on Mar 18, 2025

    @teddysupercuts
    Author

    Here's a pull request:
    #1189

  2. changed the title [-]Incorrect comment in recursive textsplitter/NewRecursiveCharacter[/-] [+]Incorrect documentation in recursive textsplitter/NewRecursiveCharacter[/+] on Apr 1, 2025
  3. Priya-9 commented on Nov 20, 2026

    @Priya-9

    Hi, I'd like to pick this up. The comment on NewRecursiveCharacter still says 4000/200, while DefaultOptions() sets 512/100. I'll open a PR to correct it.

  4. Priya-9 commented on Nov 22, 2026

    @Priya-9

    Opened #1577 with the fix.

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