EmbeddingResult

class EmbeddingResult


Result of an embedding request returned by EmbeddingModel.generateEmbedding.

Summary

Public constructors

EmbeddingResult(embedding: EmbeddingVector, modelSignature: String)

Public properties

EmbeddingVector

The generated EmbeddingVector corresponding to the input Content.

String

The signature of the model that generated this embedding (matching EmbeddingModel.getModelSignature).

Public constructors

EmbeddingResult

EmbeddingResult(embedding: EmbeddingVector, modelSignature: String)

Public properties

embedding

val embedding: EmbeddingVector

The generated EmbeddingVector corresponding to the input Content.

modelSignature

val modelSignature: String

The signature of the model that generated this embedding (matching EmbeddingModel.getModelSignature). Embeddings generated by models with different signatures are incompatible and should not be directly compared; persist this value alongside stored vectors to detect when re-indexing is required.