The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
FIX: backslash escaped (#5815)
ugfly12104d8cda1c3bf5
diff --git a/langchain/text_splitter.py b/langchain/text_splitter.pyindex 1e697e6632..fddeb02307 100644--- a/langchain/text_splitter.py+++ b/langchain/text_splitter.py@@ -716,21 +716,21 @@ class RecursiveCharacterTextSplitter(TextSplitter):elif language == Language.LATEX:return [# First, try to split along Latex sections- "\n\\chapter{",- "\n\\section{",- "\n\\subsection{",- "\n\\subsubsection{",+ "\n\\\chapter{",+ "\n\\\section{",+ "\n\\\subsection{",+ "\n\\\subsubsection{",# Now split by environments- "\n\\begin{enumerate}",- "\n\\begin{itemize}",- "\n\\begin{description}",- "\n\\begin{list}",- "\n\\begin{quote}",- "\n\\begin{quotation}",- "\n\\begin{verse}",- "\n\\begin{verbatim}",+ "\n\\\begin{enumerate}",+ "\n\\\begin{itemize}",+ "\n\\\begin{description}",+ "\n\\\begin{list}",+ "\n\\\begin{quote}",+ "\n\\\begin{quotation}",+ "\n\\\begin{verse}",+ "\n\\\begin{verbatim}",## Now split by math environments- "\n\\begin{align}",+ "\n\\\begin{align}","$$","$",# Now split by the normal type of lines