-
Notifications
You must be signed in to change notification settings - Fork 171
/
Copy pathcreate_skillset.json
84 lines (84 loc) · 2.29 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"description": "Crack documents.",
"skills": [
{
"@odata.type": "#Microsoft.Skills.Vision.ImageAnalysisSkill",
"context": "/document/normalized_images/*",
"defaultLanguageCode": "en",
"visualFeatures": [
"tags",
"categories",
"description",
"faces",
"brands"
],
"inputs": [
{
"name": "image",
"source": "/document/normalized_images/*"
}
],
"outputs": [
{
"name": "categories"
},
{
"name": "tags"
},
{
"name": "description"
},
{
"name": "faces"
},
{
"name": "brands"
}
]
},
{
"@odata.type": "#Microsoft.Skills.Custom.WebApiSkill",
"description": "A custom skill that finds the topn most similar images",
"uri": "https://[your site].azurewebsites.net/api/extraction",
"timeout": "PT160S",
"batchSize": 1,
"context": "/document/normalized_images/*",
"httpHeaders": {
"Ocp-Apim-Subscription-Key": "yoursecretkey"
},
"httpMethod": "POST",
"inputs": [
{
"name": "images",
"source": "/document/normalized_images/*"
}
],
"outputs": [
{
"name": "most_similar"
}
]
}
],
"cognitiveServices": {
"@odata.type": "#Microsoft.Azure.Search.CognitiveServicesByKey",
"description": "cogsvc",
"key": ""
},
"knowledgeStore": {
"storageConnectionString": "an Azure storage connection string",
"projections" : [
{
"tables": [
{ "tableName": "MainTable", "generatedKeyName": "SomeId", "source": "/document/normalized_images/*/most_similar" }
]
},
{
"objects": [ ]
},
{
"files": [ ]
}
]
}
}