Model to predict if paragraph is a continuation of another paragraph

Let’s imagine I have three paragraphs of text: paragraph1, paragraph2, and paragraph3. I’d like to predict whether paragraph2 or paragraph3 is the most likely continuation of paragraph1. In other words, the paragraph that is most likely to follow paragraph1 in a text.

Does anyone know if there is a model that can accomplish this?

Alternatively can anyone make any suggestions for modifying an existing model to do this?