You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using RecursiveCharacterTextSplitter to read code files (Python, CPP, JAVA etc).
When observing the split nodes, the metadata contains only: source, content_type, and language.
I also want to get the nodes' relationship. meaning, if a file was split into a few nodes, I want to know the order of the nodes. and if possible, the start char index and end char index.
How can I do that in LangChain RecursiveCharacterTextSplitter?
also want to get
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I am using RecursiveCharacterTextSplitter to read code files (Python, CPP, JAVA etc).
When observing the split nodes, the metadata contains only: source, content_type, and language.
I also want to get the nodes' relationship. meaning, if a file was split into a few nodes, I want to know the order of the nodes. and if possible, the start char index and end char index.
How can I do that in LangChain RecursiveCharacterTextSplitter?
also want to get
System Info
Name: langchain
Version: 0.2.17
Beta Was this translation helpful? Give feedback.
All reactions