Package org.springframework.ai.embedding
@NonNullApi
@NonNullFields
package org.springframework.ai.embedding
Provides the API for embedding observations.
-
ClassDescriptionAbstract implementation of the
EmbeddingModelinterface that provides dimensions calculation caching.Contract for batchingDocumentobjects so that the call to embed them could be optimized.Default implementation ofEmbeddingOptions.Default implementation ofEmbeddingOptions.Builder.EmbeddingModel is a generic interface for embedding models.Represents a request to embed a list of documents.Represents a single embedding vector.EmbeddingModel is a generic interface for embedding models.Options for embedding models.Deprecated.Request to embed a list of input instructions.Embedding response object.Common AI provider metadata returned in an embedding response.Metadata associated with the embedding result.Token count based strategy implementation forBatchingStrategy.
EmbeddingOptions.builder()