Rag System, Large Language Models, Document Management.
document text goes here..." splitter = SentenceSplitter(max_length=5) chunks = splitter.split_text(text) for chunk in chunks: print(chunk) 4. Regex Splitter from langchain.text_splitter import RegexSplitter text = "Your long document text goes here..." splitter = RegexSplitter(pattern=r'\n\n+')