Module org.elasticsearch.xcore
Interface InferenceConfig
- All Superinterfaces:
NamedWriteable,NamedXContentObject,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject,VersionedNamedWriteable,Writeable
- All Known Subinterfaces:
LenientlyParsedInferenceConfig,NlpConfig,StrictlyParsedInferenceConfig
- All Known Implementing Classes:
ClassificationConfig,FillMaskConfig,LearningToRankConfig,NerConfig,NullInferenceConfig,PassThroughConfig,QuestionAnsweringConfig,RegressionConfig,TextClassificationConfig,TextEmbeddingConfig,TextExpansionConfig,TextSimilarityConfig,ZeroShotClassificationConfig
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionapply(InferenceConfigUpdate update) Return a copy of this with the settings updated by the values inupdate.default TrainedModelInputgetDefaultInput(TrainedModelType modelType) All nodes in the cluster must have at least this MlConfigVersion attributeAll communication in the cluster must use at least this versiondefault TransportVersiondefault License.OperationModedefault License.OperationModedefault ElasticsearchStatusExceptionincompatibleUpdateException(String updateName) booleanbooleanisTargetTypeSupported(TargetType targetType) default booleandefault booleandefault booleandefault booleandefault ActionRequestValidationExceptionvalidateTrainedModelInput(TrainedModelInput input, boolean forCreation, ActionRequestValidationException validationException) Methods inherited from interface org.elasticsearch.xpack.core.ml.utils.NamedXContentObject
getNameMethods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
getWriteableName, supportsVersion
-
Field Details
-
DEFAULT_TOP_CLASSES_RESULTS_FIELD
- See Also:
-
DEFAULT_RESULTS_FIELD
- See Also:
-
RESULTS_FIELD
static final org.elasticsearch.xcontent.ParseField RESULTS_FIELD
-
-
Method Details
-
isTargetTypeSupported
-
apply
Return a copy of this with the settings updated by the values inupdate.- Parameters:
update- The update to apply- Returns:
- A new updated config
-
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin interfaceVersionedNamedWriteable
-
getMinimalSupportedMlConfigVersion
MlConfigVersion getMinimalSupportedMlConfigVersion()All nodes in the cluster must have at least this MlConfigVersion attribute -
getMinimalSupportedTransportVersion
TransportVersion getMinimalSupportedTransportVersion()All communication in the cluster must use at least this version -
requestingImportance
default boolean requestingImportance() -
getResultsField
String getResultsField() -
isAllocateOnly
boolean isAllocateOnly() -
supportsIngestPipeline
default boolean supportsIngestPipeline() -
supportsPipelineAggregation
default boolean supportsPipelineAggregation() -
supportsSearchRescorer
default boolean supportsSearchRescorer() -
getDefaultInput
-
validateTrainedModelInput
default ActionRequestValidationException validateTrainedModelInput(TrainedModelInput input, boolean forCreation, ActionRequestValidationException validationException) -
incompatibleUpdateException
-
getMinLicenseSupported
-
getMinLicenseSupportedForAction
-