Skip to content

Latest commit

 

History

History
89 lines (73 loc) · 2.15 KB

File metadata and controls

89 lines (73 loc) · 2.15 KB
page_type languages products azureDeploy name description
sample
csharp
azure
azure-cognitive-search
Hello World sample skill for AI search
This Hello World custom skills can be used as a template to create your own skills.

Hello World (template)

This "Hello World" custom skills can be used as a template to create your own skills.

Requirements

This skill has no additional requirements than the ones described in the root README.md file.

Settings

This function doesn't require any application settings.

Deployment

Deploy to Azure

hello-world

Sample Input:

{
    "values": [
        {
            "recordId": "r1",
            "data":
            {
            	"name": "World"
            }
        }
    ]
}

Sample Output:

{
    "values": [
        {
            "recordId": "r1",
            "data": {
                "greeting": "Hello, World"
            },
            "errors": [],
            "warnings": []
        }
    ]
}

Sample Skillset Integration

In order to use this skill in a AI search pipeline, you'll need to add a skill definition to your skillset. Here's a sample skill definition for this example (inputs and outputs should be updated to reflect your particular scenario and skillset environment):

{
    "@odata.type": "#Microsoft.Skills.Custom.WebApiSkill",
    "description": "Hello world",
    "uri": "[AzureFunctionEndpointUrl]/api/hello-world?code=[AzureFunctionDefaultHostKey]",
    "batchSize": 1,
    "context": "/document/merged_content/people/*",
    "inputs": [
        {
            "name": "name",
            "source": "/document/merged_content/people/*"
        }
    ],
    "outputs": [
        {
            "name": "greeting",
            "targetName": "greeting"
        }
    ]
}