Skip to content

Conversation

@aszenz
Copy link
Contributor

@aszenz aszenz commented Dec 22, 2025

Q A
Bug fix? no
New feature? yes
Docs? no
Issues Fix #1250
License MIT

Not an good implementation , just exploring

Signed-off-by: asrar <asrar@qbil.nl>
* @param non-empty-list<string> $separators
* @return iterable<string>
*/
private static function splitText(string $text, array $separators, int $chunkSize): iterable
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

langchain seems to do this with regex, maybe that's faster and more flexible

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about using UnicodeString?

@aszenz aszenz changed the title feat: Add Recursive Character text splitter [Store] Adds Recursive Character text splitter Dec 22, 2025
@chr-hertel chr-hertel added the Store Issues & PRs about the AI Store component label Dec 22, 2025
@OskarStark OskarStark changed the title [Store] Adds Recursive Character text splitter [Store] Add RecursiveCharacterTextTransformer Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Store Issues & PRs about the AI Store component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Store] Implement Recursive Character Text Transformer

3 participants