Generate questions from a sentence or paragraph

I am interested in generating questions based on the sentence or paragraph I provide. I would like to control how many questions get generated, 1 to n.

Is there an example showing how this is done?

Thanks

Got you covered. Fine-tuning GPT-3 to generate questions about anything - YouTube