Could not find "RecursiveCharacterTextSplitter"

I could not find ‘RecursiveCharacterTextSplitter’ in the langchain pakage >1.0.0a10
what is the alternative?

hi @Najiya

I guess it is still there

2 Likes

It looks like the package structure has changed. Previously, I used to import it with from langchain.text_splitter import RecursiveCharacterTextSplitter, but now it’s available in the langchain_text_splitters module.

3 Likes

It looks like the package structure has changed. Previously, I used to import it with from langchain.text_splitter import RecursiveCharacterTextSplitter, but now it’s available in the langchain_text_splitters module.

In langchain 1.1.0 this does not work either :frowning:

1 Like

The solution was to use

I think it is still present

1 Like

still there
image

btw @Najiya could you mark this topic as completed/closed?
So that we consider this version-snapshot-related solution done and no other comment should be possible.

It is applied automatically to new posts (12h to complete/close after solving), but it is not retroactive.

I’ve marked the answer as the solution, but I’m not sure how to mark it as completed or closed. How do I do that?

Thanks @Najiya :slight_smile: Actually I have no idea, I have no permission to close topics. Maybe it only refers to new posts.