# TaskConfig.QuestionAnswering


```
public final class TaskConfig.QuestionAnswering extends TaskConfig
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [com.google.mlkit.genai.embedding.TaskConfig](https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/TaskConfig) ||
|   | ↳ | [com.google.mlkit.genai.embedding.TaskConfig.QuestionAnswering](https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/TaskConfig.QuestionAnswering) |

*** ** * ** ***

Task type for questions in a question-answering system.

Optimized for finding documents (embedded with `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/TaskConfig.RetrievalDocument`) that answer the question.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/TaskConfig.QuestionAnswering#QuestionAnswering()()` |

## Public constructors

### QuestionAnswering

```
public QuestionAnswering()
```