Maybe we also need to add check for empty model (with zero documents)? Can you please verify how it will behave with such empty result?

This is a minor detail, for sure! Thank you for this functionality (especially for making it configurable)!