This is a variation of https://github.com/spring-projects/spring-ai/pull/166, based on my last comment in that PR.

Comment From: markpollack

See my comments in the other PR

Comment From: markpollack

See comments here https://github.com/spring-projects/spring-ai/pull/166

Comment From: markpollack

closing as adding a text splitter to the functional composition chain in the ETL framework solves this problem.