Class QuestionAnsweringInferenceOptions
java.lang.Object
co.elastic.clients.elasticsearch.ml.QuestionAnsweringInferenceOptions
- All Implemented Interfaces:
InferenceConfigCreateVariant,JsonpSerializable
@JsonpDeserializable public class QuestionAnsweringInferenceOptions extends java.lang.Object implements InferenceConfigCreateVariant, JsonpSerializable
Question answering inference options
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQuestionAnsweringInferenceOptions.BuilderBuilder forQuestionAnsweringInferenceOptions. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<QuestionAnsweringInferenceOptions>_DESERIALIZERJson deserializer forQuestionAnsweringInferenceOptions -
Method Summary
Modifier and Type Method Description InferenceConfigCreate.Kind_inferenceConfigCreateKind()InferenceConfigCreate variant kind.java.lang.IntegermaxAnswerLength()The maximum answer length to considerjava.lang.IntegernumTopClasses()Specifies the number of top class predictions to return.static QuestionAnsweringInferenceOptionsof(java.util.function.Function<QuestionAnsweringInferenceOptions.Builder,ObjectBuilder<QuestionAnsweringInferenceOptions>> fn)java.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 voidsetupQuestionAnsweringInferenceOptionsDeserializer(ObjectDeserializer<QuestionAnsweringInferenceOptions.Builder> op)TokenizationConfigtokenization()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.InferenceConfigCreateVariant
_toInferenceConfigCreate
-
Field Details
-
_DESERIALIZER
Json deserializer forQuestionAnsweringInferenceOptions
-
-
Method Details
-
of
public static QuestionAnsweringInferenceOptions of(java.util.function.Function<QuestionAnsweringInferenceOptions.Builder,ObjectBuilder<QuestionAnsweringInferenceOptions>> fn) -
_inferenceConfigCreateKind
InferenceConfigCreate variant kind.- Specified by:
_inferenceConfigCreateKindin interfaceInferenceConfigCreateVariant
-
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 considerAPI 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
-
setupQuestionAnsweringInferenceOptionsDeserializer
protected static void setupQuestionAnsweringInferenceOptionsDeserializer(ObjectDeserializer<QuestionAnsweringInferenceOptions.Builder> op)
-