Class QuestionAnsweringInferenceUpdateOptions
java.lang.Object
co.elastic.clients.elasticsearch.ml.QuestionAnsweringInferenceUpdateOptions
- All Implemented Interfaces:
InferenceConfigUpdateVariant,JsonpSerializable
@JsonpDeserializable public class QuestionAnsweringInferenceUpdateOptions extends java.lang.Object implements InferenceConfigUpdateVariant, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQuestionAnsweringInferenceUpdateOptions.BuilderBuilder forQuestionAnsweringInferenceUpdateOptions. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<QuestionAnsweringInferenceUpdateOptions>_DESERIALIZERJson deserializer forQuestionAnsweringInferenceUpdateOptions -
Method Summary
Modifier and Type Method Description InferenceConfigUpdate.Kind_inferenceConfigUpdateKind()InferenceConfigUpdate variant kind.java.lang.IntegermaxAnswerLength()The maximum answer length to consider for extractionjava.lang.IntegernumTopClasses()Specifies the number of top class predictions to return.static QuestionAnsweringInferenceUpdateOptionsof(java.util.function.Function<QuestionAnsweringInferenceUpdateOptions.Builder,ObjectBuilder<QuestionAnsweringInferenceUpdateOptions>> fn)java.lang.Stringquestion()Required - The question to answer given the inference contextjava.lang.StringresultsField()The field that is added to incoming documents to contain the inference prediction.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupQuestionAnsweringInferenceUpdateOptionsDeserializer(ObjectDeserializer<QuestionAnsweringInferenceUpdateOptions.Builder> op)NlpTokenizationUpdateOptionstokenization()The tokenization options to update when inferringjava.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.ml.InferenceConfigUpdateVariant
_toInferenceConfigUpdate
-
Field Details
-
_DESERIALIZER
Json deserializer forQuestionAnsweringInferenceUpdateOptions
-
-
Method Details
-
of
public static QuestionAnsweringInferenceUpdateOptions of(java.util.function.Function<QuestionAnsweringInferenceUpdateOptions.Builder,ObjectBuilder<QuestionAnsweringInferenceUpdateOptions>> fn) -
_inferenceConfigUpdateKind
InferenceConfigUpdate variant kind.- Specified by:
_inferenceConfigUpdateKindin interfaceInferenceConfigUpdateVariant
-
question
public final java.lang.String question()Required - The question to answer given the inference contextAPI name:
question -
numTopClasses
@Nullable public final java.lang.Integer 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
@Nullable public final java.lang.String resultsField()The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name:
results_field -
maxAnswerLength
@Nullable public final java.lang.Integer maxAnswerLength()The maximum answer length to consider for extractionAPI name:
max_answer_length -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupQuestionAnsweringInferenceUpdateOptionsDeserializer
protected static void setupQuestionAnsweringInferenceUpdateOptionsDeserializer(ObjectDeserializer<QuestionAnsweringInferenceUpdateOptions.Builder> op)
-