An experimental AI generated and as of now unreviewed branch is available at:
https://github.com/ohrner-it/xwiki-contrib-ai-llm/tree/features/LLMAI-229-Allow-extensions-to-provide-chunking-methods-for-collections