I'd love to see more research on optimizing language model inputs, and this looks like a great step in that direction. https://www.kapa.ai/blog/how-we-prune-rag-context