Class QuestionAnsweringInferenceUpdateOptions
java.lang.Object
co.elastic.clients.elasticsearch.ml.QuestionAnsweringInferenceUpdateOptions
- All Implemented Interfaces:
InferenceConfigUpdateVariant
,JsonpSerializable
@JsonpDeserializable
public class QuestionAnsweringInferenceUpdateOptions
extends Object
implements InferenceConfigUpdateVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder forQuestionAnsweringInferenceUpdateOptions
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<QuestionAnsweringInferenceUpdateOptions>
Json deserializer forQuestionAnsweringInferenceUpdateOptions
-
Method Summary
Modifier and TypeMethodDescriptionInferenceConfigUpdate variant kind.final Integer
The maximum answer length to consider for extractionfinal Integer
Specifies the number of top class predictions to return.of
(Function<QuestionAnsweringInferenceUpdateOptions.Builder, ObjectBuilder<QuestionAnsweringInferenceUpdateOptions>> fn) final String
question()
Required - The question to answer given the inference contextfinal String
The field that is added to incoming documents to contain the inference prediction.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
setupQuestionAnsweringInferenceUpdateOptionsDeserializer
(ObjectDeserializer<QuestionAnsweringInferenceUpdateOptions.Builder> op) The tokenization options to update when inferringtoString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch.ml.InferenceConfigUpdateVariant
_toInferenceConfigUpdate
-
Field Details
-
_DESERIALIZER
Json deserializer forQuestionAnsweringInferenceUpdateOptions
-
-
Method Details
-
of
-
_inferenceConfigUpdateKind
InferenceConfigUpdate variant kind.- Specified by:
_inferenceConfigUpdateKind
in interfaceInferenceConfigUpdateVariant
-
question
Required - The question to answer given the inference contextAPI name:
question
-
numTopClasses
Specifies the number of top class predictions to return. Defaults to 0.API name:
num_top_classes
-
tokenization
The tokenization options to update when inferringAPI name:
tokenization
-
resultsField
The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name:
results_field
-
maxAnswerLength
The maximum answer length to consider for extractionAPI name:
max_answer_length
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupQuestionAnsweringInferenceUpdateOptionsDeserializer
protected static void setupQuestionAnsweringInferenceUpdateOptionsDeserializer(ObjectDeserializer<QuestionAnsweringInferenceUpdateOptions.Builder> op)
-