"\n\n"
), with chunk length measured by the number of characters.
Key points:
.split_text
— returns plain string chunks..create_documents
— returns LangChain Document objects, useful when metadata needs to be preserved for downstream tasks..create_documents
to propagate metadata associated with each document to the output chunks:
.split_text
to obtain the string content directly: