Extract and generate response from context

Hi. I’m using a model to find matches from a database and output the strings that best match a sentence.
A kind of model that finds the answer from the database.
Now I need not only output the matching strings, I need to generate a response referring to these matching strings (like in ChatGPT for example)
What multilingual transformers are there that can thus extract an answer from the context and generate an answer?