page_type | languages | products | azureDeploy | name | description | |||
---|---|---|---|---|---|---|---|---|
sample |
|
|
Hello World sample skill for cognitive search |
This Hello World custom skills can be used as a template to create your own skills. |
This "Hello World" custom skills can be used as a template to create your own skills.
This skill has no additional requirements than the ones described in the root README.md
file.
This function doesn't require any application settings.
{
"values": [
{
"recordId": "r1",
"data":
{
"name": "World"
}
}
]
}
{
"values": [
{
"recordId": "r1",
"data": {
"greeting": "Hello, World"
},
"errors": [],
"warnings": []
}
]
}
In order to use this skill in a cognitive 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"
}
]
}