= """function helloWorld() {  console.log("Hello, World!");}// Call the functionhelloWorld();"""js_splitter = RecursiveCharacterTextSplitter.from_language(    language=Language.JS, chunk_size=60, chunk_overlap=0)js_docs = js_splitter.create_documents([JS_CODE])js_docs    [Document(page_content='function helloWorld() {\n  console.log("Hello, World!");\n}', metadata={}),     Document(page_content='// Call the function\nhelloWorld();', metadata={})]TS‚ÄãHere's an example using the TS text splitter:TS_CODE = """function helloWorld(): void {  console.log("Hello, World!");}// Call the functionhelloWorld();"""ts_splitter = RecursiveCharacterTextSplitter.from_language(    language=Language.TS, chunk_size=60, chunk_overlap=0)ts_docs = ts_splitter.create_documents([TS_CODE])ts_docs    [Document(page_content='function helloWorld(): void {\n  console.log("Hello, World!");\n}', metadata={}),     Document(page_content='// Call the function\nhelloWorld();', metadata={})]Markdown‚ÄãHere's an example using the Markdown text splitter:markdown_text = """# ü¶úÔ∏èüîó LangChain‚ö° Building applications with LLMs through composability ‚ö°## Quick Install```bash# Hopefully this code block isn't splitpip install langchain```As an open-source project in a rapidly developing field, we are extremely open to contributions."""md_splitter = RecursiveCharacterTextSplitter.from_language(    language=Language.MARKDOWN, chunk_size=60, chunk_overlap=0)md_docs = md_splitter.create_documents([markdown_text])md_docs    [Document(page_content='# ü¶úÔ∏èüîó LangChain', metadata={}),     Document(page_content='‚ö° Building applications with LLMs through composability ‚ö°', metadata={}),     Document(page_content='## Quick Install', metadata={}),     Document(page_content="```bash\n# Hopefully this code block isn't split", metadata={}),     Document(page_content='pip install langchain', metadata={}),     Document(page_content='```', metadata={}),     Document(page_content='As an open-source project in a
CodeTextSplitter allows you to split your code with multiple languages supported. Import enum Language and specify the language.
CodeTextSplitter allows you to split your code with multiple languages supported. Import enum Language and specify the language. ->: = """function helloWorld() {  console.log("Hello, World!");}// Call the functionhelloWorld();"""js_splitter = RecursiveCharacterTextSplitter.from_language(    language=Language.JS, chunk_size=60, chunk_overlap=0)js_docs = js_splitter.create_documents([JS_CODE])js_docs    [Document(page_content='function helloWorld() {\n  console.log("Hello, World!");\n}', metadata={}),     Document(page_content='// Call the function\nhelloWorld();', metadata={})]TS‚ÄãHere's an example using the TS text splitter:TS_CODE = """function helloWorld(): void {  console.log("Hello, World!");}// Call the functionhelloWorld();"""ts_splitter = RecursiveCharacterTextSplitter.from_language(    language=Language.TS, chunk_size=60, chunk_overlap=0)ts_docs = ts_splitter.create_documents([TS_CODE])ts_docs    [Document(page_content='function helloWorld(): void {\n  console.log("Hello, World!");\n}', metadata={}),     Document(page_content='// Call the function\nhelloWorld();', metadata={})]Markdown‚ÄãHere's an example using the Markdown text splitter:markdown_text = """# ü¶úÔ∏èüîó LangChain‚ö° Building applications with LLMs through composability ‚ö°## Quick Install```bash# Hopefully this code block isn't splitpip install langchain```As an open-source project in a rapidly developing field, we are extremely open to contributions."""md_splitter = RecursiveCharacterTextSplitter.from_language(    language=Language.MARKDOWN, chunk_size=60, chunk_overlap=0)md_docs = md_splitter.create_documents([markdown_text])md_docs    [Document(page_content='# ü¶úÔ∏èüîó LangChain', metadata={}),     Document(page_content='‚ö° Building applications with LLMs through composability ‚ö°', metadata={}),     Document(page_content='## Quick Install', metadata={}),     Document(page_content="```bash\n# Hopefully this code block isn't split", metadata={}),     Document(page_content='pip install langchain', metadata={}),     Document(page_content='```', metadata={}),     Document(page_content='As an open-source project in a