Skip to content

Commit

Permalink
Remove useless MarkdownSplitter
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhhui committed Jul 24, 2024
1 parent 9e2180a commit c5c2849
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 51 deletions.
4 changes: 2 additions & 2 deletions src/Document/MarkdownDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down
49 changes: 0 additions & 49 deletions src/TextSplitter/MarkdownSplitter.php

This file was deleted.

0 comments on commit c5c2849

Please sign in to comment.