public static class EmbedTextResult.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
EmbedTextResult |
build() |
EmbedTextResult.Builder |
copy(EmbedTextResult model) |
EmbedTextResult.Builder |
embeddings(List<List<Float>> embeddings)
The embeddings corresponding to inputs.
|
EmbedTextResult.Builder |
id(String id)
A unique identifier for the generated result.
|
EmbedTextResult.Builder |
inputs(List<String> inputs)
The original inputs.
|
EmbedTextResult.Builder |
modelId(String modelId)
The OCID of the model used in this inference request.
|
EmbedTextResult.Builder |
modelVersion(String modelVersion)
The version of the model.
|
public EmbedTextResult.Builder id(String id)
A unique identifier for the generated result.
id
- the value to setpublic EmbedTextResult.Builder inputs(List<String> inputs)
The original inputs. Only present if “isEcho” is set to true.
inputs
- the value to setpublic EmbedTextResult.Builder embeddings(List<List<Float>> embeddings)
The embeddings corresponding to inputs.
embeddings
- the value to setpublic EmbedTextResult.Builder modelId(String modelId)
The OCID of the model used in this inference request.
modelId
- the value to setpublic EmbedTextResult.Builder modelVersion(String modelVersion)
The version of the model.
modelVersion
- the value to setpublic EmbedTextResult build()
public EmbedTextResult.Builder copy(EmbedTextResult model)
Copyright © 2016–2024. All rights reserved.