public static class EmbedTextDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
EmbedTextDetails |
build() |
EmbedTextDetails.Builder |
compartmentId(String compartmentId)
The OCID of compartment in which to call the Generative AI service to create text
embeddings.
|
EmbedTextDetails.Builder |
copy(EmbedTextDetails model) |
EmbedTextDetails.Builder |
inputs(List<String> inputs)
Provide a list of strings.
|
EmbedTextDetails.Builder |
inputType(EmbedTextDetails.InputType inputType)
Specifies the input type.
|
EmbedTextDetails.Builder |
isEcho(Boolean isEcho)
Whether or not to include the original inputs in the response.
|
EmbedTextDetails.Builder |
servingMode(ServingMode servingMode) |
EmbedTextDetails.Builder |
truncate(EmbedTextDetails.Truncate truncate)
For an input that’s longer than the maximum token length, specifies which part of the
input text will be truncated.
|
public EmbedTextDetails.Builder inputs(List<String> inputs)
Provide a list of strings. Each string can be words, a phrase, or a paragraph. The maximum length of each string entry in the list is 512 tokens.
inputs
- the value to setpublic EmbedTextDetails.Builder servingMode(ServingMode servingMode)
public EmbedTextDetails.Builder compartmentId(String compartmentId)
The OCID of compartment in which to call the Generative AI service to create text embeddings.
compartmentId
- the value to setpublic EmbedTextDetails.Builder isEcho(Boolean isEcho)
Whether or not to include the original inputs in the response. Results are index-based.
isEcho
- the value to setpublic EmbedTextDetails.Builder truncate(EmbedTextDetails.Truncate truncate)
For an input that’s longer than the maximum token length, specifies which part of the input text will be truncated.
truncate
- the value to setpublic EmbedTextDetails.Builder inputType(EmbedTextDetails.InputType inputType)
Specifies the input type.
inputType
- the value to setpublic EmbedTextDetails build()
public EmbedTextDetails.Builder copy(EmbedTextDetails model)
Copyright © 2016–2024. All rights reserved.