Class AzureMachineLearningSkill
java.lang.Object
com.azure.search.documents.indexes.models.SearchIndexerSkill
com.azure.search.documents.indexes.models.AzureMachineLearningSkill
The AML skill allows you to extend AI enrichment with a custom Azure Machine Learning (AML) model. Once an AML model
is trained and deployed, an AML skill integrates it into AI enrichment.
-
Constructor Summary
ConstructorsConstructorDescriptionAzureMachineLearningSkill
(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs) Creates an instance of AzureMachineLearningSkill class. -
Method Summary
Modifier and TypeMethodDescriptionGet the authenticationKey property: (Required for key authentication) The key for the AML service.Get the degreeOfParallelism property: (Optional) When specified, indicates the number of calls the indexer will make in parallel to the endpoint you have provided.Get the odataType property: Identifies the concrete type of the skill.Get the region property: (Optional for token authentication).Get the resourceId property: (Required for token authentication).Get the scoringUri property: (Required for no authentication or key authentication) The scoring URI of the AML service to which the JSON payload will be sent.Get the timeout property: (Optional) When specified, indicates the timeout for the http client making the API call.setAuthenticationKey
(String authenticationKey) Set the authenticationKey property: (Required for key authentication) The key for the AML service.setContext
(String context) Set the context property: Represents the level at which operations take place, such as the document root or document content (for example, /document or /document/content).setDegreeOfParallelism
(Integer degreeOfParallelism) Set the degreeOfParallelism property: (Optional) When specified, indicates the number of calls the indexer will make in parallel to the endpoint you have provided.setDescription
(String description) Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill.Set the name property: The name of the skill which uniquely identifies it within the skillset.Set the region property: (Optional for token authentication).setResourceId
(String resourceId) Set the resourceId property: (Required for token authentication).setScoringUri
(String scoringUri) Set the scoringUri property: (Required for no authentication or key authentication) The scoring URI of the AML service to which the JSON payload will be sent.setTimeout
(Duration timeout) Set the timeout property: (Optional) When specified, indicates the timeout for the http client making the API call.Methods inherited from class com.azure.search.documents.indexes.models.SearchIndexerSkill
getContext, getDescription, getInputs, getName, getOutputs
-
Constructor Details
-
AzureMachineLearningSkill
public AzureMachineLearningSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs) Creates an instance of AzureMachineLearningSkill class.- Parameters:
inputs
- the inputs value to set.outputs
- the outputs value to set.
-
-
Method Details
-
getOdataType
Get the odataType property: Identifies the concrete type of the skill.- Returns:
- the odataType value.
-
getScoringUri
Get the scoringUri property: (Required for no authentication or key authentication) The scoring URI of the AML service to which the JSON payload will be sent. Only the https URI scheme is allowed.- Returns:
- the scoringUri value.
-
setScoringUri
Set the scoringUri property: (Required for no authentication or key authentication) The scoring URI of the AML service to which the JSON payload will be sent. Only the https URI scheme is allowed.- Parameters:
scoringUri
- the scoringUri value to set.- Returns:
- the AzureMachineLearningSkill object itself.
-
getAuthenticationKey
Get the authenticationKey property: (Required for key authentication) The key for the AML service.- Returns:
- the authenticationKey value.
-
setAuthenticationKey
Set the authenticationKey property: (Required for key authentication) The key for the AML service.- Parameters:
authenticationKey
- the authenticationKey value to set.- Returns:
- the AzureMachineLearningSkill object itself.
-
getResourceId
Get the resourceId property: (Required for token authentication). The Azure Resource Manager resource ID of the AML service. It should be in the format subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.MachineLearningServices/workspaces/{workspace-name}/services/{service_name}.- Returns:
- the resourceId value.
-
setResourceId
Set the resourceId property: (Required for token authentication). The Azure Resource Manager resource ID of the AML service. It should be in the format subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.MachineLearningServices/workspaces/{workspace-name}/services/{service_name}.- Parameters:
resourceId
- the resourceId value to set.- Returns:
- the AzureMachineLearningSkill object itself.
-
getTimeout
Get the timeout property: (Optional) When specified, indicates the timeout for the http client making the API call.- Returns:
- the timeout value.
-
setTimeout
Set the timeout property: (Optional) When specified, indicates the timeout for the http client making the API call.- Parameters:
timeout
- the timeout value to set.- Returns:
- the AzureMachineLearningSkill object itself.
-
getRegion
Get the region property: (Optional for token authentication). The region the AML service is deployed in.- Returns:
- the region value.
-
setRegion
Set the region property: (Optional for token authentication). The region the AML service is deployed in.- Parameters:
region
- the region value to set.- Returns:
- the AzureMachineLearningSkill object itself.
-
getDegreeOfParallelism
Get the degreeOfParallelism property: (Optional) When specified, indicates the number of calls the indexer will make in parallel to the endpoint you have provided. You can decrease this value if your endpoint is failing under too high of a request load, or raise it if your endpoint is able to accept more requests and you would like an increase in the performance of the indexer. If not set, a default value of 5 is used. The degreeOfParallelism can be set to a maximum of 10 and a minimum of 1.- Returns:
- the degreeOfParallelism value.
-
setDegreeOfParallelism
Set the degreeOfParallelism property: (Optional) When specified, indicates the number of calls the indexer will make in parallel to the endpoint you have provided. You can decrease this value if your endpoint is failing under too high of a request load, or raise it if your endpoint is able to accept more requests and you would like an increase in the performance of the indexer. If not set, a default value of 5 is used. The degreeOfParallelism can be set to a maximum of 10 and a minimum of 1.- Parameters:
degreeOfParallelism
- the degreeOfParallelism value to set.- Returns:
- the AzureMachineLearningSkill object itself.
-
setName
Set the name property: The name of the skill which uniquely identifies it within the skillset. A skill with no name defined will be given a default name of its 1-based index in the skills array, prefixed with the character '#'.- Overrides:
setName
in classSearchIndexerSkill
- Parameters:
name
- the name value to set.- Returns:
- the SearchIndexerSkill object itself.
-
setDescription
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill.- Overrides:
setDescription
in classSearchIndexerSkill
- Parameters:
description
- the description value to set.- Returns:
- the SearchIndexerSkill object itself.
-
setContext
Set the context property: Represents the level at which operations take place, such as the document root or document content (for example, /document or /document/content). The default is /document.- Overrides:
setContext
in classSearchIndexerSkill
- Parameters:
context
- the context value to set.- Returns:
- the SearchIndexerSkill object itself.
-