Package org.opensearch.ml.common.model
Class MLGuard
java.lang.Object
org.opensearch.ml.common.model.MLGuard
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMLGuard(Guardrails guardrails, org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.client.Client client) -
Method Summary
Modifier and TypeMethodDescriptionorg.opensearch.client.Clientorg.opensearch.core.xcontent.NamedXContentRegistryvalidate(String input, MLGuard.Type type) validateRegex(String input, Pattern pattern) validateRegexList(String input, List<Pattern> regexPatterns) validateStopWordsSingleIndex(String input, String indexName, List<String> fieldNames)
-
Constructor Details
-
MLGuard
public MLGuard(Guardrails guardrails, org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.client.Client client)
-
-
Method Details
-
validate
-
validateRegexList
-
validateRegex
-
validateStopWords
-
validateStopWordsSingleIndex
-
getStopWordsIndicesInput
-
getStopWordsIndicesOutput
-
getInputRegex
-
getOutputRegex
-
getInputRegexPattern
-
getOutputRegexPattern
-
getXContentRegistry
public org.opensearch.core.xcontent.NamedXContentRegistry getXContentRegistry() -
getClient
public org.opensearch.client.Client getClient() -
getStopWordsIndices
-