@Generated(value="OracleSDKGenerator", comments="API Version: 20231130") public final class EmbedTextDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Details for the request to embed texts.
Note: Objects should always be created or deserialized using the EmbedTextDetails.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the EmbedTextDetails.Builder
, which maintain a
set of all explicitly set fields called EmbedTextDetails.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
EmbedTextDetails.Builder |
static class |
EmbedTextDetails.InputType
Specifies the input type.
|
static class |
EmbedTextDetails.Truncate
For an input that’s longer than the maximum token length, specifies which part of the input
text will be truncated.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
EmbedTextDetails(List<String> inputs,
ServingMode servingMode,
String compartmentId,
Boolean isEcho,
EmbedTextDetails.Truncate truncate,
EmbedTextDetails.InputType inputType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static EmbedTextDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCompartmentId()
The OCID of compartment in which to call the Generative AI service to create text embeddings.
|
List<String> |
getInputs()
Provide a list of strings.
|
EmbedTextDetails.InputType |
getInputType()
Specifies the input type.
|
Boolean |
getIsEcho()
Whether or not to include the original inputs in the response.
|
ServingMode |
getServingMode() |
EmbedTextDetails.Truncate |
getTruncate()
For an input that’s longer than the maximum token length, specifies which part of the input
text will be truncated.
|
int |
hashCode() |
EmbedTextDetails.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"inputs","servingMode","compartmentId","isEcho","truncate","inputType"}) public EmbedTextDetails(List<String> inputs, ServingMode servingMode, String compartmentId, Boolean isEcho, EmbedTextDetails.Truncate truncate, EmbedTextDetails.InputType inputType)
public static EmbedTextDetails.Builder builder()
Create a new builder.
public EmbedTextDetails.Builder toBuilder()
public List<String> getInputs()
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.
public ServingMode getServingMode()
public String getCompartmentId()
The OCID of compartment in which to call the Generative AI service to create text embeddings.
public Boolean getIsEcho()
Whether or not to include the original inputs in the response. Results are index-based.
public EmbedTextDetails.Truncate getTruncate()
For an input that’s longer than the maximum token length, specifies which part of the input text will be truncated.
public EmbedTextDetails.InputType getInputType()
Specifies the input type.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.