# Answer template generation from question

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fanswer-template-generation-from-question%2F61901%3E%5C
**Category:** 🤗Transformers\
**Created:** [November 11, 2023, 11:40am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fanswer-template-generation-from-question%2F61901 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fhug-saf)%5C
**Post date:** [November 11, 2023, 11:40am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fanswer-template-generation-from-question%2F61901%2F1 "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!
