# How to use Question Answering Model in second step with data generated in first step

**URL:** <https://discuss.huggingface.co/t/how-to-use-question-answering-model-in-second-step-with-data-generated-in-first-step/4247>\
**Category:** Models\
**Created:** [March 8, 2021, 6:33pm UTC](https://discuss.huggingface.co/t/how-to-use-question-answering-model-in-second-step-with-data-generated-in-first-step/4247 "2021-03-08T18:33:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashwani](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@ashwani](https://discuss.huggingface.co/u/ashwani)\
**Post date:** [March 8, 2021, 6:33pm UTC](https://discuss.huggingface.co/t/how-to-use-question-answering-model-in-second-step-with-data-generated-in-first-step/4247/1 "2021-03-08T18:33:31Z")

</div>

I am currently working on a 2 step approach for my task where the question is generated in the first step. I am not able to understand how to implement the code. I need to first implement a model for the question (e.g., say a simple classification problem) and then I need to use the prediction output of the first step and form a question with that and then solve it for a question answering problem. Can someone give me some ideas as to how can I implement it?
