Package org.opensearch.ml.common.dataset
Class QuestionAnsweringInputDataSet
java.lang.Object
org.opensearch.ml.common.dataset.MLInputDataset
org.opensearch.ml.common.dataset.QuestionAnsweringInputDataSet
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionQuestionAnsweringInputDataSet(String question, String context) QuestionAnsweringInputDataSet(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Methods inherited from class org.opensearch.ml.common.dataset.MLInputDataset
fromStream, getInputDataType
-
Constructor Details
-
QuestionAnsweringInputDataSet
-
QuestionAnsweringInputDataSet
public QuestionAnsweringInputDataSet(org.opensearch.core.common.io.stream.StreamInput in) throws IOException - Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceorg.opensearch.core.common.io.stream.Writeable- Overrides:
writeToin classMLInputDataset- Throws:
IOException
-
builder
-
toBuilder
-
getQuestion
-
getContext
-