I am glad you were able to solve your issue. We’ve encountered similar challenges and have built a library that is intentionally designed to prevent us from falling into similar traps.
https://github.com/mi12labs/SwiftAI
We have an example where we use a divide and conquer strategy for summarization.
Topic:
Machine Learning & AI
SubTopic:
Foundation Models