mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-17 10:13:29 +00:00
add more vars to text splitter (#5503)
This commit is contained in:
parent
562fdfc8f9
commit
f0ea77b230
@ -443,6 +443,8 @@ class RecursiveCharacterTextSplitter(TextSplitter):
|
|||||||
"\nfunction ",
|
"\nfunction ",
|
||||||
"\nconst ",
|
"\nconst ",
|
||||||
"\nlet ",
|
"\nlet ",
|
||||||
|
"\nvar ",
|
||||||
|
"\nclass ",
|
||||||
# Split along control flow statements
|
# Split along control flow statements
|
||||||
"\nif ",
|
"\nif ",
|
||||||
"\nfor ",
|
"\nfor ",
|
||||||
|
Loading…
Reference in New Issue
Block a user