# Answer template generation from question

**URL:** <https://discuss.huggingface.co/t/answer-template-generation-from-question/61901>\
**Category:** 🤗Transformers\
**Created:** [November 11, 2023, 11:40am UTC](https://discuss.huggingface.co/t/answer-template-generation-from-question/61901 "2023-11-11T11:40:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hug-saf](https://avatars.discourse-cdn.com/v4/letter/h/278dde/32.png) [@hug-saf](https://discuss.huggingface.co/u/hug-saf)\
**Post date:** [November 11, 2023, 11:40am UTC](https://discuss.huggingface.co/t/answer-template-generation-from-question/61901/1 "2023-11-11T11:40:19Z")

</div>

Hello,  
I was wondering if it is possible to generate the answer template from the question.  
The scenario is quite like this, where my system will be given a large text (e.g. one on a topic like MongoDB) asked a simple question (like “when was MongoDB created?”) and it is expected to provide a somewhat descriptive answer (like “MongoDB was created in 2007” as opposed to mere “2007”).  
For that I am planning to use two different models,

- one for actually finding the answer
- and the other for generating human conversation

The idea is to,

- generate the answer template from the posed question with the key spot blank (like, “MongoDB was created on \_\_\_”)
- then ask the first model to actually extract the required information from the text provided
- then plug in the extracted data into the blank space of the template

Please let me know if it is possible.  
Thanks!
