Class VertexAiTextEmbeddingOptions.Builder
java.lang.Object
org.springframework.ai.vertexai.embedding.text.VertexAiTextEmbeddingOptions.Builder
- Enclosing class:
- VertexAiTextEmbeddingOptions
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoTruncate
(Boolean autoTruncate) build()
dimensions
(Integer dimensions) from
(VertexAiTextEmbeddingOptions fromOptions) withAutoTruncate
(Boolean autoTruncate) Deprecated, for removal: This API element is subject to removal in a future version.withDimensions
(Integer dimensions) Deprecated, for removal: This API element is subject to removal in a future version.usedimensions(Integer)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usemodel(VertexAiTextEmbeddingModelName)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usetaskType(TaskType)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usetitle(String)
instead.
-
Field Details
-
options
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
-
model
-
model
-
taskType
public VertexAiTextEmbeddingOptions.Builder taskType(VertexAiTextEmbeddingOptions.TaskType taskType) -
dimensions
-
title
-
autoTruncate
-
withModel
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiTextEmbeddingOptions.Builder withModel(String model) Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead. -
withModel
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiTextEmbeddingOptions.Builder withModel(VertexAiTextEmbeddingModelName model) Deprecated, for removal: This API element is subject to removal in a future version.usemodel(VertexAiTextEmbeddingModelName)
instead. -
withTaskType
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiTextEmbeddingOptions.Builder withTaskType(VertexAiTextEmbeddingOptions.TaskType taskType) Deprecated, for removal: This API element is subject to removal in a future version.usetaskType(TaskType)
instead. -
withDimensions
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiTextEmbeddingOptions.Builder withDimensions(Integer dimensions) Deprecated, for removal: This API element is subject to removal in a future version.usedimensions(Integer)
instead. -
withTitle
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiTextEmbeddingOptions.Builder withTitle(String user) Deprecated, for removal: This API element is subject to removal in a future version.usetitle(String)
instead. -
withAutoTruncate
@Deprecated(forRemoval=true, since="1.0.0-M5") public VertexAiTextEmbeddingOptions.Builder withAutoTruncate(Boolean autoTruncate) Deprecated, for removal: This API element is subject to removal in a future version.useautoTruncate(Boolean)
instead. -
build
-
autoTruncate(Boolean)
instead.