Spaces:
Sleeping
Sleeping
File size: 243 Bytes
b24327e |
1 2 3 4 5 6 7 8 9 10 11 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
text = "..."
text_splitter = RecursiveCharacterTextSplitter(
chunk_size = 320,
chunk_overlap = 64,
separators=['\n\n']
)
docs = text_splitter.create_documents([text]) |