Create an inferred statement from a question-answer pair

Hi,

I am new to this. I want to create a single inferred statement from a question-answer pair. I am using node.js and want use a pretrained model ‘distilbert-base-cased-distilled-squad’ or similar for this. How do I implement this in node.js?

Thanks,
Tar