forked from Azure-Samples/azure-search-power-skills
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_skillset.json
57 lines (57 loc) · 1.62 KB
/
create_skillset.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"description": "Summarize documents.",
"skills": [
{
"@odata.type": "#Microsoft.Skills.Text.EntityRecognitionSkill",
"categories": [ "Organization", "Location", "Person", "Url" ],
"defaultLanguageCode": "en",
"inputs": [
{
"name": "text", "source": "/document/content"
}
],
"outputs": [
{
"name": "organizations", "targetName": "organizations"
},
{
"name": "persons", "targetName": "persons"
},
{
"name": "locations", "targetName": "locations"
},
{
"name": "urls", "targetName": "urls"
}
]
},
{
"@odata.type": "#Microsoft.Skills.Custom.WebApiSkill",
"description": "A custom skill that summarizes the text",
"uri": "https://YOUR_WEB_APP/api/extraction",
"timeout": "PT160S",
"batchSize": 1,
"context": "/document/content",
"httpHeaders": {
"Ocp-Apim-Subscription-Key": ""
},
"httpMethod": "POST",
"inputs": [
{
"name": "text",
"source": "/document/content"
}
],
"outputs": [
{
"name": "summary"
}
]
}
],
"cognitiveServices": {
"@odata.type": "#Microsoft.Azure.Search.CognitiveServicesByKey",
"description": "cogsvc",
"key": ""
}
}