Class EmbeddingMultiFormat
java.lang.Object
com.sap.ai.sdk.orchestration.model.EmbeddingMultiFormat
A dictionary mapping encoding format names to their embeddings. Used when multiple encoding
formats are requested (Cohere-specific).
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for EmbeddingMultiFormat. -
Method Summary
Modifier and TypeMethodDescription_float(float[] _float) Set the _float of thisEmbeddingMultiFormatinstance and return the same instance.addBinaryItem(Integer binaryItem) Add one binary instance to thisEmbeddingMultiFormat.addInt8Item(Integer int8Item) Add one int8 instance to thisEmbeddingMultiFormat.addUbinaryItem(Integer ubinaryItem) Add one ubinary instance to thisEmbeddingMultiFormat.addUint8Item(Integer uint8Item) Add one uint8 instance to thisEmbeddingMultiFormat.Set the base64 of thisEmbeddingMultiFormatinstance and return the same instance.Set the binary of thisEmbeddingMultiFormatinstance and return the same instance.static EmbeddingMultiFormatcreate()Create a newEmbeddingMultiFormatinstance.booleanBase64 encoding format - base64 encoded stringBinary encoding format - array of integersgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theEmbeddingMultiFormat.float[]getFloat()Float encoding format - array of floating point numbersgetInt8()Int8 encoding format - array of 8-bit integersUbinary encoding format - array of unsigned integersgetUint8()Uint8 encoding format - array of unsigned 8-bit integersinthashCode()Set the int8 of thisEmbeddingMultiFormatinstance and return the same instance.voidSet the base64 of thisEmbeddingMultiFormatinstance.voidSet the binary of thisEmbeddingMultiFormatinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisEmbeddingMultiFormatinstance.voidsetFloat(float[] _float) Set the _float of thisEmbeddingMultiFormatinstance.voidSet the int8 of thisEmbeddingMultiFormatinstance.voidsetUbinary(List<Integer> ubinary) Set the ubinary of thisEmbeddingMultiFormatinstance.voidSet the uint8 of thisEmbeddingMultiFormatinstance.toMap()Get the value of all properties of thisEmbeddingMultiFormatinstance including unrecognized properties.toString()Set the ubinary of thisEmbeddingMultiFormatinstance and return the same instance.Set the uint8 of thisEmbeddingMultiFormatinstance and return the same instance.
-
Constructor Details
-
EmbeddingMultiFormat
protected EmbeddingMultiFormat()Default constructor for EmbeddingMultiFormat.
-
-
Method Details
-
_float
Set the _float of thisEmbeddingMultiFormatinstance and return the same instance.- Parameters:
_float- Float encoding format - array of floating point numbers- Returns:
- The same instance of this
EmbeddingMultiFormatclass
-
getFloat
@Nonnull public float[] getFloat()Float encoding format - array of floating point numbers- Returns:
- _float The _float of this
EmbeddingMultiFormatinstance.
-
setFloat
public void setFloat(@Nullable float[] _float) Set the _float of thisEmbeddingMultiFormatinstance.- Parameters:
_float- Float encoding format - array of floating point numbers
-
int8
Set the int8 of thisEmbeddingMultiFormatinstance and return the same instance.- Parameters:
int8- Int8 encoding format - array of 8-bit integers- Returns:
- The same instance of this
EmbeddingMultiFormatclass
-
addInt8Item
Add one int8 instance to thisEmbeddingMultiFormat.- Parameters:
int8Item- The int8 that should be added- Returns:
- The same instance of type
EmbeddingMultiFormat
-
getInt8
Int8 encoding format - array of 8-bit integers- Returns:
- int8 The int8 of this
EmbeddingMultiFormatinstance.
-
setInt8
Set the int8 of thisEmbeddingMultiFormatinstance.- Parameters:
int8- Int8 encoding format - array of 8-bit integers
-
uint8
Set the uint8 of thisEmbeddingMultiFormatinstance and return the same instance.- Parameters:
uint8- Uint8 encoding format - array of unsigned 8-bit integers- Returns:
- The same instance of this
EmbeddingMultiFormatclass
-
addUint8Item
Add one uint8 instance to thisEmbeddingMultiFormat.- Parameters:
uint8Item- The uint8 that should be added- Returns:
- The same instance of type
EmbeddingMultiFormat
-
getUint8
Uint8 encoding format - array of unsigned 8-bit integers- Returns:
- uint8 The uint8 of this
EmbeddingMultiFormatinstance.
-
setUint8
Set the uint8 of thisEmbeddingMultiFormatinstance.- Parameters:
uint8- Uint8 encoding format - array of unsigned 8-bit integers
-
base64
Set the base64 of thisEmbeddingMultiFormatinstance and return the same instance.- Parameters:
base64- Base64 encoding format - base64 encoded string- Returns:
- The same instance of this
EmbeddingMultiFormatclass
-
getBase64
Base64 encoding format - base64 encoded string- Returns:
- base64 The base64 of this
EmbeddingMultiFormatinstance.
-
setBase64
Set the base64 of thisEmbeddingMultiFormatinstance.- Parameters:
base64- Base64 encoding format - base64 encoded string
-
binary
Set the binary of thisEmbeddingMultiFormatinstance and return the same instance.- Parameters:
binary- Binary encoding format - array of integers- Returns:
- The same instance of this
EmbeddingMultiFormatclass
-
addBinaryItem
Add one binary instance to thisEmbeddingMultiFormat.- Parameters:
binaryItem- The binary that should be added- Returns:
- The same instance of type
EmbeddingMultiFormat
-
getBinary
Binary encoding format - array of integers- Returns:
- binary The binary of this
EmbeddingMultiFormatinstance.
-
setBinary
Set the binary of thisEmbeddingMultiFormatinstance.- Parameters:
binary- Binary encoding format - array of integers
-
ubinary
Set the ubinary of thisEmbeddingMultiFormatinstance and return the same instance.- Parameters:
ubinary- Ubinary encoding format - array of unsigned integers- Returns:
- The same instance of this
EmbeddingMultiFormatclass
-
addUbinaryItem
Add one ubinary instance to thisEmbeddingMultiFormat.- Parameters:
ubinaryItem- The ubinary that should be added- Returns:
- The same instance of type
EmbeddingMultiFormat
-
getUbinary
Ubinary encoding format - array of unsigned integers- Returns:
- ubinary The ubinary of this
EmbeddingMultiFormatinstance.
-
setUbinary
Set the ubinary of thisEmbeddingMultiFormatinstance.- Parameters:
ubinary- Ubinary encoding format - array of unsigned integers
-
getCustomFieldNames
Get the names of the unrecognizable properties of theEmbeddingMultiFormat.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisEmbeddingMultiFormatinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisEmbeddingMultiFormatinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisEmbeddingMultiFormatinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a newEmbeddingMultiFormatinstance. No arguments are required.
-
toMap()instead.