diff --git a/spring-ai-core/src/main/java/org/springframework/ai/reader/TextReader.java b/spring-ai-core/src/main/java/org/springframework/ai/reader/TextReader.java index 389a1d703..becedabfd 100644 --- a/spring-ai-core/src/main/java/org/springframework/ai/reader/TextReader.java +++ b/spring-ai-core/src/main/java/org/springframework/ai/reader/TextReader.java @@ -88,12 +88,11 @@ public class TextReader implements DocumentReader { this.customMetadata.put(SOURCE_METADATA, this.resource.getFilename()); return List.of(new Document(document, this.customMetadata)); - // return textSplitter.apply(Collections.singletonList(new Document(document, - // this.customMetadata))); + } catch (IOException e) { throw new RuntimeException(e); } } -} \ No newline at end of file +}