# EmbeddingVector


```
public final class EmbeddingVector
```

<br />

*** ** * ** ***

Represents a generated embedding vector.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/EmbeddingVector#EmbeddingVector(kotlin.FloatArray)(@https://developer.android.com/reference/androidx/annotation/NonNull.html float[] vector)` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html float[]` | `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/EmbeddingVector#getVector()()` A flattened `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float-array/index.html` containing the embedding values, whose length matches `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/EmbeddingMetadata#dimension()`. |

## Public constructors

### EmbeddingVector

```
public EmbeddingVector(@NonNull float[] vector)
```

## Public methods

### getVector

```
public final @NonNull float[] getVector()
```

A flattened `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float-array/index.html` containing the embedding values, whose length matches `https://developers.google.com/android/reference/com/google/mlkit/genai/embedding/EmbeddingMetadata#dimension()`.