Class AmazonBedrockTaskSettings
java.lang.Object
co.elastic.clients.elasticsearch.inference.AmazonBedrockTaskSettings
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class AmazonBedrockTaskSettings
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AmazonBedrockTaskSettings>Json deserializer forAmazonBedrockTaskSettings -
Method Summary
Modifier and TypeMethodDescriptionfinal IntegerFor acompletiontask, it sets the maximum number for the output tokens to be generated.static AmazonBedrockTaskSettingsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupAmazonBedrockTaskSettingsDeserializer(ObjectDeserializer<AmazonBedrockTaskSettings.Builder> op) final FloatFor acompletiontask, it is a number between 0.0 and 1.0 that controls the apparent creativity of the results.final FloattopK()For acompletiontask, it limits samples to the top-K most likely words, balancing coherence and variability.final FloattopP()For acompletiontask, it is a number in the range of 0.0 to 1.0, to eliminate low-probability tokens.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forAmazonBedrockTaskSettings
-
-
Method Details
-
of
public static AmazonBedrockTaskSettings of(Function<AmazonBedrockTaskSettings.Builder, ObjectBuilder<AmazonBedrockTaskSettings>> fn) -
maxNewTokens
For acompletiontask, it sets the maximum number for the output tokens to be generated.API name:
max_new_tokens -
temperature
For acompletiontask, it is a number between 0.0 and 1.0 that controls the apparent creativity of the results. At temperature 0.0 the model is most deterministic, at temperature 1.0 most random. It should not be used iftop_portop_kis specified.API name:
temperature -
topK
For acompletiontask, it limits samples to the top-K most likely words, balancing coherence and variability. It is only available for anthropic, cohere, and mistral providers. It is an alternative totemperature; it should not be used iftemperatureis specified.API name:
top_k -
topP
For acompletiontask, it is a number in the range of 0.0 to 1.0, to eliminate low-probability tokens. Top-p uses nucleus sampling to select top tokens whose sum of likelihoods does not exceed a certain value, ensuring both variety and coherence. It is an alternative totemperature; it should not be used iftemperatureis specified.API name:
top_p -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupAmazonBedrockTaskSettingsDeserializer
protected static void setupAmazonBedrockTaskSettingsDeserializer(ObjectDeserializer<AmazonBedrockTaskSettings.Builder> op)
-