# TaskConfig.QuestionAnswering


```
class TaskConfig.QuestionAnswering : TaskConfig
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||
| ↳ | [com.google.mlkit.genai.embedding.TaskConfig](https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/embedding/TaskConfig) ||
|   | ↳ | [com.google.mlkit.genai.embedding.TaskConfig.QuestionAnswering](https://developers.google.com/android/reference/kotlin/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/kotlin/com/google/mlkit/genai/embedding/TaskConfig.RetrievalDocument`) that answer the question.

## Summary

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

## Public constructors

### QuestionAnswering

```
QuestionAnswering()
```