# TaskConfig.Clustering


```
class TaskConfig.Clustering : 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.Clustering](https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/embedding/TaskConfig.Clustering) |

*** ** * ** ***

Task type for clustering tasks.

Optimized to generate embeddings that help cluster texts based on their similarities (e.g., document organization, market research).

## Summary

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

## Public constructors

### Clustering

```
Clustering()
```