Skip to content

feat(text_splitters): Add SemanticChunker splitter #7855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

CoDanny
Copy link

@CoDanny CoDanny commented Mar 17, 2025

This PR adds the SemanticChunker Text Splitter from python to Javascript: https://github.com/langchain-ai/langchain-experimental/blob/main/libs/experimental/langchain_experimental/text_splitter.py

Twitter / X: CoDanny

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Mar 17, 2025
Copy link

vercel bot commented Mar 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-docs ❌ Failed (Inspect) Apr 22, 2025 7:36pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ⬜️ Ignored (Inspect) Apr 22, 2025 7:36pm

@dosubot dosubot bot added the auto:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features label Mar 17, 2025
@jacoblee93
Copy link
Collaborator

Thanks for this! Will give it a look tomorrow.

Copy link
Collaborator

@jacoblee93 jacoblee93 left a comment

Choose a reason for hiding this comment

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

Sorry for the delay! Could you also please add some unit tests?

@CoDanny
Copy link
Author

CoDanny commented Mar 31, 2025

Thanks for the comments. All addressed. I'll work on unit tests next

@DatChive
Copy link

DatChive commented Apr 19, 2025

Anxiously awaiting the merge of this 😅 hit me up if you want me to take a crack at the unit tests!

@CoDanny
Copy link
Author

CoDanny commented Apr 22, 2025

@jacoblee93 unit tests have been added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants