Class QuestionAnsweringInferenceOptions
java.lang.Object
co.elastic.clients.elasticsearch.ml.QuestionAnsweringInferenceOptions
- All Implemented Interfaces:
- InferenceConfigCreateVariant,- JsonpSerializable
@JsonpDeserializable
public class QuestionAnsweringInferenceOptions
extends Object
implements InferenceConfigCreateVariant, JsonpSerializable
Question answering inference options
- See Also:
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<QuestionAnsweringInferenceOptions>Json deserializer forQuestionAnsweringInferenceOptions
- 
Method SummaryModifier and TypeMethodDescriptionInferenceConfigCreate variant kind.final IntegerThe maximum answer length to considerfinal IntegerSpecifies the number of top class predictions to return.of(Function<QuestionAnsweringInferenceOptions.Builder, ObjectBuilder<QuestionAnsweringInferenceOptions>> fn) final StringThe 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) final TokenizationConfigThe tokenization options to update when inferringtoString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.ml.InferenceConfigCreateVariant_toInferenceConfigCreate
- 
Field Details- 
_DESERIALIZERJson deserializer forQuestionAnsweringInferenceOptions
 
- 
- 
Method Details- 
of
- 
_inferenceConfigCreateKindInferenceConfigCreate variant kind.- Specified by:
- _inferenceConfigCreateKindin interface- InferenceConfigCreateVariant
 
- 
numTopClassesSpecifies the number of top class predictions to return. Defaults to 0.API name: num_top_classes
- 
tokenizationThe tokenization options to update when inferringAPI name: tokenization
- 
resultsFieldThe field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name: results_field
- 
maxAnswerLengthThe maximum answer length to considerAPI name: max_answer_length
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
toString
- 
setupQuestionAnsweringInferenceOptionsDeserializerprotected static void setupQuestionAnsweringInferenceOptionsDeserializer(ObjectDeserializer<QuestionAnsweringInferenceOptions.Builder> op) 
 
-