From 5925dd7b33240e38f6472862b6dac8980fc02108 Mon Sep 17 00:00:00 2001 From: zhangqian <89562713+zhangqian9158@users.noreply.github.com> Date: Tue, 19 Mar 2024 12:49:49 +0800 Subject: [PATCH] Update TextReader.java (#415) Remove invalid code --- .../main/java/org/springframework/ai/reader/TextReader.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 +}