# How to implement a no-context Question-Answer model like PhilosopherAI?

**URL:** <https://discuss.huggingface.co/t/how-to-implement-a-no-context-question-answer-model-like-philosopherai/14221>\
**Category:** Beginners\
**Created:** [January 29, 2022, 9:30pm UTC](https://discuss.huggingface.co/t/how-to-implement-a-no-context-question-answer-model-like-philosopherai/14221 "2022-01-29T21:30:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fedeas](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/fedeas/32/3895_2.png) [@fedeas](https://discuss.huggingface.co/u/fedeas)\
**Post date:** [January 29, 2022, 9:30pm UTC](https://discuss.huggingface.co/t/how-to-implement-a-no-context-question-answer-model-like-philosopherai/14221/1 "2022-01-29T21:30:06Z")

</div>

Hello,  
I would like to make something similar to [philosopherai.com](http://philosopherai.com) - i.e. generating answers for questions without providing a context.

How can I do that?  
Thanks

---

<div class="post-metadata">

**Author:** ![marshmellow77](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/marshmellow77/32/3279_2.png) [@marshmellow77](https://discuss.huggingface.co/u/marshmellow77)\
**Post date:** [January 30, 2022, 7:20am UTC](https://discuss.huggingface.co/t/how-to-implement-a-no-context-question-answer-model-like-philosopherai/14221/2 "2022-01-30T07:20:54Z")

</div>

Hi Federico, thanks for opening this topic. I was fascinated by this website, in particular their pricing and their claims in their [FAQs](https://philosopherai.com/about)!

I personally don’t think that using smaller versions of GPT-3 (or free versions, for that matter) diminish the “wow-factor” of these text generation models. Here is how I would do it:

- Use a development environment that gives you free GPU power (e.g. [https://studiolab.sagemaker.aws/](https://studiolab.sagemaker.aws/))
- Leverage the Huggingface Pipeline API for Text Generation: [https://huggingface.co/docs/transformers/v4.16.1/en/main\_classes/pipelines#transformers.TextGenerationPipeline](https://huggingface.co/docs/transformers/v4.16.1/en/main_classes/pipelines#transformers.TextGenerationPipeline)
- Done! 😉

Well not quite - once you have the pipeline running you obviously want to play around with different models, different values for parameters, some prompt engineering, etc. As a starting point you you could leverage the code from the PhilosopherAI itself: [philosopherai\_demo/philosopher\_demo.js at master · mayfer/philosopherai\_demo · GitHub](https://github.com/mayfer/philosopherai_demo/blob/master/philosopher_demo.js)

That’s pretty much all there is to it 🙂

Below a screenshot to give you an idea what an output from the model GPT-Neo 1.3B (a popular open-source alternative to GPT-3) looks like:

 ![Capture](https://us1.discourse-cdn.com/hellohellohello/original/2X/9/96ecb4672eda8b8ec85ff0598c5d4987090cc0a4.png)

Hope that helps, reach out if any question!

Cheers  
Heiko

---

<div class="post-metadata">

**Author:** ![AayushShah](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/aayushshah/32/22671_2.png) [@AayushShah](https://discuss.huggingface.co/u/AayushShah)\
**Post date:** [March 14, 2023, 12:39pm UTC](https://discuss.huggingface.co/t/how-to-implement-a-no-context-question-answer-model-like-philosopherai/14221/3 "2023-03-14T12:39:21Z")

</div>

Hello! I am fascinated by your answer.  
I really am looking for some model (from huggingface) which is able to take the data from my specific domain and then I should be able ask the question to that model.

Then the model should be able to answer my question from the knowledge learned from the data. I mean, is it possible to “just ask” without giving the context at the asking time?

What process should I follow?  
I am a bit new to huggingface and I am looking for some kind of “generative question answering” instead of “extractive question answering”.

Thank you!
