Update TextReader.java (#415)

Remove invalid code
This commit is contained in:
zhangqian
2024-03-19 12:49:49 +08:00
committed by GitHub
parent 08fdf28692
commit 5925dd7b33

View File

@@ -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);
}
}
}
}