[knowledge] for java code egenration

I’m currently working on the “Java Code generation” use case. input is .java file, which has more that 1000 lines of code. Could you please help me to configure the knowledge source → for chunking the code file automatically and collaborate all the result chunks itself, then output the results in run.