My fellow Americans.' lookup_str='' metadata={} lookup_index=0text_splitter.split_text(state_of_the_union)[:2]    ['Madam Speaker, Madam Vice President, our First Lady and Second Gentleman. Members of Congress and',     'of Congress and the Cabinet. Justices of the Supreme Court. My fellow Americans.']PreviousMarkdownHeaderTextSplitterNextSplit by tokensCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.
This text splitter is the recommended one for generic text. It is parameterized by a list of characters. It tries to split on them in order until the chunks are small enough. The default list is ["\n\n", "\n", " ", ""]. This has the effect of trying to keep all paragraphs (and then sentences, and then words) together as long as possible, as those would generically seem to be the strongest semantically related pieces of text.
This text splitter is the recommended one for generic text. It is parameterized by a list of characters. It tries to split on them in order until the chunks are small enough. The default list is ["\n\n", "\n", " ", ""]. This has the effect of trying to keep all paragraphs (and then sentences, and then words) together as long as possible, as those would generically seem to be the strongest semantically related pieces of text. ->: My fellow Americans.' lookup_str='' metadata={} lookup_index=0text_splitter.split_text(state_of_the_union)[:2]    ['Madam Speaker, Madam Vice President, our First Lady and Second Gentleman. Members of Congress and',     'of Congress and the Cabinet. Justices of the Supreme Court. My fellow Americans.']PreviousMarkdownHeaderTextSplitterNextSplit by tokensCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.