# Where can I find the docs on "question\_answering"?

**URL:** <https://discuss.elastic.co/t/where-can-i-find-the-docs-on-question-answering/310060>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [July 19, 2022, 7:13pm UTC](https://discuss.elastic.co/t/where-can-i-find-the-docs-on-question-answering/310060 "2022-07-19T19:13:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenB196](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benb196/32/83401_2.png) [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Post date:** [July 19, 2022, 7:13pm UTC](https://discuss.elastic.co/t/where-can-i-find-the-docs-on-question-answering/310060/1 "2022-07-19T19:13:32Z")

</div>

Hi All,

Elasticsearch added [question\_answering](https://github.com/elastic/elasticsearch/pull/85958) in 8.3, but I can't seem to find any documentation on how to use/test it. I've looked here: [Natural language processing | Machine Learning in the Elastic Stack [8.3] | Elastic](https://www.elastic.co/guide/en/machine-learning/current/ml-nlp.html), which to me would be the most logical place to find it, but I also looked: [Machine learning trained model APIs | Elasticsearch Guide [8.3] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-df-trained-models-apis.html), and this doesn't seem to mention it either. Would anyone know where I could find docs/examples on this topic? (I understand it somewhat from reading the PR, but would like to read the formal docs about it)

---

<div class="post-metadata">

**Author:** ![BenTrent](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bentrent/32/33915_2.png) [@BenTrent](https://discuss.elastic.co/u/BenTrent)\
**Post date:** [July 20, 2022, 11:49am UTC](https://discuss.elastic.co/t/where-can-i-find-the-docs-on-question-answering/310060/2 "2022-07-20T11:49:45Z")

</div>

For inference see these docs: [Infer trained model API | Elasticsearch Guide [8.3] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-trained-model.html)

For some compatible models (not exhaustive): [Compatible third party NLP models | Machine Learning in the Elastic Stack [8.3] | Elastic](https://www.elastic.co/guide/en/machine-learning/current/ml-nlp-model-ref.html#ml-nlp-model-ref-question-answering)

For how to upload the model via Eland: [Machine Learning | Eland Python Client | Elastic](https://www.elastic.co/guide/en/elasticsearch/client/eland/current/machine-learning.html#ml-nlp-pytorch)

Or using docker instead of installing all of Eland's dependencies: [GitHub - elastic/eland: Python Client and Toolkit for DataFrames, Big Data, Machine Learning and ETL in Elasticsearch](https://github.com/elastic/eland#docker)

Here is an example usage:

```auto
POST _ml/trained_models/q_and_a/_infer
{
  "docs":[{ "text_field": "The Amazon rainforest (Portuguese: Floresta Amazônica or Amazônia; Spanish: Selva Amazónica, Amazonía or usually Amazonia; French: Forêt amazonienne; Dutch: Amazoneregenwoud), also known in English as Amazonia or the Amazon Jungle, is a moist broadleaf forest that covers most of the Amazon basin of South America. This basin encompasses 7,000,000 square kilometres (2,700,000 sq mi), of which 5,500,000 square kilometres (2,100,000 sq mi) are covered by the rainforest. This region includes territory belonging to nine nations. The majority of the forest is contained within Brazil, with 60% of the rainforest, followed by Peru with 13%, Colombia with 10%, and with minor amounts in Venezuela, Ecuador, Bolivia, Guyana, Suriname and French Guiana. States or departments in four nations contain \"Amazonas\" in their names. The Amazon represents over half of the planet's remaining rainforests, and comprises the largest and most biodiverse tract of tropical rainforest in the world, with an estimated 390 billion individual trees divided into 16,000 species."}],
  "inference_config": {
    "question_answering": {
      "question": "Which name is also used to describe the Amazon rainforest in English?"
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![BenB196](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benb196/32/83401_2.png) [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Post date:** [July 20, 2022, 12:13pm UTC](https://discuss.elastic.co/t/where-can-i-find-the-docs-on-question-answering/310060/3 "2022-07-20T12:13:51Z")

</div>

Thanks @BenTrent for the doc links, I thought I had checked [Infer trained model API | Elasticsearch Guide [8.3] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-trained-model.html), but didn't see it. I must've either looked at an older version of the docs or am bad at ctrl+f.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 17, 2022, 12:13pm UTC](https://discuss.elastic.co/t/where-can-i-find-the-docs-on-question-answering/310060/4 "2022-08-17T12:13:52Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
