langchain-ai / langchain

🦜🔗 Build context-aware reasoning applications
https://python.langchain.com
MIT License
95.08k stars 15.41k forks source link

ExperimentalMarkdownSyntaxTextSplitter missing in __init__ #26028

Open luc42ei opened 2 months ago

luc42ei commented 2 months ago

Checked other resources

Example Code

In the __init__ file in langchain_text_splitters, the ExperimentalMarkdownSyntaxTextSplitter should be added like so:

from langchain_text_splitters.markdown import (
    ExperimentalMarkdownSyntaxTextSplitter,
    HeaderType,
    LineType,
    MarkdownHeaderTextSplitter,
    MarkdownTextSplitter,
)

Error Message and Stack Trace (if applicable)

from langchain_text_splitters import ExperimentalMarkdownSyntaxTextSplitter ImportError: cannot import name 'ExperimentalMarkdownSyntaxTextSplitter' from 'langchain_text_splitters'

Description

I'm trying to import ExperimentalMarkdownSyntaxTextSplitter

System Info

langchain==0.2.16 langchain-community==0.2.16 langchain-core==0.2.38 langchain-openai==0.1.23 langchain-text-splitters==0.2.4 langchainhub==0.1.21

I'm on Linux, Debian

python version 3.11

ZhangShenao commented 2 months ago

try to fix it in #26703