diff --git a/src/Document/MarkdownDocument.php b/src/Document/MarkdownDocument.php index 7e74e3a..067239b 100644 --- a/src/Document/MarkdownDocument.php +++ b/src/Document/MarkdownDocument.php @@ -12,13 +12,13 @@ namespace Hyperf\Odin\Document; -use Hyperf\Odin\TextSplitter\MarkdownSplitter; +use Hyperf\Odin\TextSplitter\RecursiveCharacterTextSplitter; class MarkdownDocument extends Document { public function split(): array { - $recursiveCharacterTextSplitter = new MarkdownSplitter(); + $recursiveCharacterTextSplitter = new RecursiveCharacterTextSplitter('markdown'); return $recursiveCharacterTextSplitter->splitText($this->getContent()); } diff --git a/src/TextSplitter/MarkdownSplitter.php b/src/TextSplitter/MarkdownSplitter.php deleted file mode 100644 index 6ea6010..0000000 --- a/src/TextSplitter/MarkdownSplitter.php +++ /dev/null @@ -1,49 +0,0 @@ -