02. Securitic text text split (RecursiveCharacterTextSplitter)
RecursiveCharacterTextSplitter
%pip install -qU langchain-text-splitters# appendix-keywords.txt Opens a file and creates a file object called f.
with open("./data/appendix-keywords.txt") as f:
file = f.read() # Reads the contents of a file and stores them in the file variable.# Prints some of the content read from the file.
print(file[:500])Previous01. Character text split (CharacterTextSplitter)Next03. Token Text Split (TokenTextSplitter)
Last updated