Interface EmbeddingsModelParamsEncodingFormat
- All Known Implementing Classes:
EmbeddingsModelParamsEncodingFormat.InnerEncodingFormat,EmbeddingsModelParamsEncodingFormat.ListOfEncodingFormats
public interface EmbeddingsModelParamsEncodingFormat
The format to return the embeddings in. Can be a single format or an array of formats.
OpenAI's spec allows for 'float' and 'base64' encoding formats.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordHelper class to createEncodingFormatthat implementsEmbeddingsModelParamsEncodingFormat.static final recordHelper class to createList<EncodingFormat>that implementsEmbeddingsModelParamsEncodingFormat. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionCreator to enable deserialization ofEncodingFormat.Creator to enable deserialization ofList<EncodingFormat>.
-
Method Details
-
createListOfEncodingFormats
@Nonnull static EmbeddingsModelParamsEncodingFormat.ListOfEncodingFormats createListOfEncodingFormats(@Nonnull List<EncodingFormat> val) Creator to enable deserialization ofList<EncodingFormat>.- Parameters:
val- the value to use- Returns:
- a new instance of
EmbeddingsModelParamsEncodingFormat.ListOfEncodingFormats.
-
createInnerEncodingFormat
@Nonnull static EmbeddingsModelParamsEncodingFormat.InnerEncodingFormat createInnerEncodingFormat(@Nonnull EncodingFormat val) Creator to enable deserialization ofEncodingFormat.- Parameters:
val- the value to use- Returns:
- a new instance of
EmbeddingsModelParamsEncodingFormat.InnerEncodingFormat.
-