Class PredictModelRequest
Inheritance
PredictModelRequest
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class PredictModelRequest : PlainRequestBase<PredictModelRequestParameters>, IPredictModelRequest, IRequest<PredictModelRequestParameters>, IRequest
Constructors
|
Edit this page
View Source
PredictModelRequest()
Used for serialization purposes, making sure we have a parameterless constructor
Declaration
protected PredictModelRequest()
|
Edit this page
View Source
PredictModelRequest(Id)
/_plugins/_ml/models/{model_id}/_predict
Declaration
public PredictModelRequest(Id modelId)
Parameters
| Type |
Name |
Description |
| Id |
modelId |
this parameter is required
|
Fields
|
Edit this page
View Source
MinimumServerVersion
Minimum OpenSearch version required for this API.
Declaration
public const string MinimumServerVersion = "2.12"
Field Value
Properties
|
Edit this page
View Source
ActionType
Declaration
public PredictionActionType? ActionType { get; set; }
Property Value
|
Edit this page
View Source
Context
Declaration
public string Context { get; set; }
Property Value
|
Edit this page
View Source
Dlq
Declaration
public IDictionary<string, string> Dlq { get; set; }
Property Value
|
Edit this page
View Source
Parameters
Declaration
public IDictionary<string, string> Parameters { get; set; }
Property Value
|
Edit this page
View Source
QueryText
Declaration
public string QueryText { get; set; }
Property Value
|
Edit this page
View Source
Question
Declaration
public string Question { get; set; }
Property Value
|
Edit this page
View Source
Self
Declaration
protected IPredictModelRequest Self { get; }
Property Value
|
Edit this page
View Source
TextDocs
Declaration
public IList<string> TextDocs { get; set; }
Property Value
Implements
Extension Methods