From f0ea77b23059b2e09aa905d8299613f0d2ea991e Mon Sep 17 00:00:00 2001 From: Harrison Chase Date: Wed, 31 May 2023 07:21:20 -0700 Subject: [PATCH] add more vars to text splitter (#5503) --- langchain/text_splitter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/langchain/text_splitter.py b/langchain/text_splitter.py index a88acf33..d60ae2cf 100644 --- a/langchain/text_splitter.py +++ b/langchain/text_splitter.py @@ -443,6 +443,8 @@ class RecursiveCharacterTextSplitter(TextSplitter): "\nfunction ", "\nconst ", "\nlet ", + "\nvar ", + "\nclass ", # Split along control flow statements "\nif ", "\nfor ",