|
193 | 193 | " }\n", |
194 | 194 | " ]\n", |
195 | 195 | " },\n", |
196 | | - " \n", |
| 196 | + " {\n", |
| 197 | + " \"@odata.type\": \"#Microsoft.Skills.Text.PIIDetectionSkill\",\n", |
| 198 | + " \"name\": \"#1\",\n", |
| 199 | + " \"description\": null,\n", |
| 200 | + " \"context\": \"/document/merged_content\",\n", |
| 201 | + " \"defaultLanguageCode\": \"en\",\n", |
| 202 | + " \"minimumPrecision\": 0.5,\n", |
| 203 | + " \"maskingMode\": \"replace\",\n", |
| 204 | + " \"maskingCharacter\": \"*\",\n", |
| 205 | + " \"inputs\": [\n", |
| 206 | + " {\n", |
| 207 | + " \"name\": \"text\",\n", |
| 208 | + " \"source\": \"/document/merged_content\"\n", |
| 209 | + " }\n", |
| 210 | + " ],\n", |
| 211 | + " \"outputs\": [\n", |
| 212 | + " {\n", |
| 213 | + " \"name\": \"piiEntities\",\n", |
| 214 | + " \"targetName\": \"pii_entities\"\n", |
| 215 | + " },\n", |
| 216 | + " {\n", |
| 217 | + " \"name\": \"maskedText\",\n", |
| 218 | + " \"targetName\": \"masked_text\"\n", |
| 219 | + " }\n", |
| 220 | + " ]\n", |
| 221 | + " },\n", |
197 | 222 | " {\n", |
198 | 223 | " \"@odata.type\": \"#Microsoft.Skills.Custom.WebApiSkill\",\n", |
199 | 224 | " \"name\": \"ImageSkill\",\n", |
|
212 | 237 | " {\n", |
213 | 238 | " \"name\": \"layoutText\",\n", |
214 | 239 | " \"source\": \"/document/normalized_images/*/layoutText\"\n", |
| 240 | + " },\n", |
| 241 | + " {\n", |
| 242 | + " \"name\": \"pii_entities\",\n", |
| 243 | + " \"source\": \"/document/merged_content/pii_entities\"\n", |
215 | 244 | " }\n", |
216 | 245 | " ],\n", |
217 | 246 | " \"outputs\": [\n", |
218 | 247 | " {\n", |
219 | 248 | " \"name\": \"slices\",\n", |
220 | 249 | " \"targetName\": \"slices\"\n", |
| 250 | + " },\n", |
| 251 | + " {\n", |
| 252 | + " \"name\": \"original\",\n", |
| 253 | + " \"targetName\": \"original\"\n", |
221 | 254 | " }\n", |
222 | 255 | " ],\n", |
223 | 256 | " \"httpHeaders\": {}\n", |
224 | 257 | " }\n", |
225 | 258 | " \n", |
226 | 259 | " ],\n", |
227 | | - " 'cognitiveServices': {\n", |
228 | | - " '@odata.type': '#Microsoft.Azure.Search.CognitiveServicesByKey',\n", |
229 | | - " 'description': '/subscriptions/subscription_id/resourceGroups/resource_group/providers/Microsoft.CognitiveServices/accounts/cog_svcs_acct',\n", |
230 | | - " 'key': f'{cog_svcs_key}'\n", |
231 | | - " },\n", |
| 260 | + " 'cognitiveServices':None,\n", |
232 | 261 | " 'knowledgeStore': {\n", |
233 | 262 | " 'storageConnectionString': f'{STORAGECONNSTRING}',\n", |
234 | 263 | " 'projections': [\n", |
235 | 264 | " {\n", |
236 | | - " \"tables\": [],\n", |
237 | | - " \"objects\": [],\n", |
238 | | - " \"files\": [\n", |
239 | | - " {\n", |
240 | | - " \"storageContainer\": f'{know_store_container}',\n", |
241 | | - " \"referenceKeyName\": None,\n", |
242 | | - " \"generatedKeyName\": \"slicesKey\",\n", |
243 | | - " \"source\": \"/document/normalized_images/*/slices/*\",\n", |
244 | | - " \"sourceContext\": None,\n", |
245 | | - " \"inputs\": []\n", |
246 | | - " }\n", |
247 | | - " ]\n", |
| 265 | + " \"tables\": [],\n", |
| 266 | + " \"objects\": [\n", |
| 267 | + " {\n", |
| 268 | + " \"storageContainer\": \"layout\",\n", |
| 269 | + " \"referenceKeyName\": null,\n", |
| 270 | + " \"generatedKeyName\": \"layoutKey\",\n", |
| 271 | + " \"source\": \"/document/normalized_images/*/layoutText\",\n", |
| 272 | + " \"sourceContext\": null,\n", |
| 273 | + " \"inputs\": []\n", |
248 | 274 | " }\n", |
| 275 | + " ],\n", |
| 276 | + " \"files\": [\n", |
| 277 | + " {\n", |
| 278 | + " \"storageContainer\": \"slices\",\n", |
| 279 | + " \"referenceKeyName\": null,\n", |
| 280 | + " \"generatedKeyName\": \"slicesKey\",\n", |
| 281 | + " \"source\": \"/document/normalized_images/*/slices/*\",\n", |
| 282 | + " \"sourceContext\": null,\n", |
| 283 | + " \"inputs\": []\n", |
| 284 | + " },\n", |
| 285 | + " {\n", |
| 286 | + " \"storageContainer\": \"images\",\n", |
| 287 | + " \"referenceKeyName\": null,\n", |
| 288 | + " \"generatedKeyName\": \"imageKey\",\n", |
| 289 | + " \"source\": \"/document/normalized_images/*\",\n", |
| 290 | + " \"sourceContext\": null,\n", |
| 291 | + " \"inputs\": []\n", |
| 292 | + " },\n", |
| 293 | + " {\n", |
| 294 | + " \"storageContainer\": f'{know_store_container}',\n", |
| 295 | + " \"referenceKeyName\": null,\n", |
| 296 | + " \"generatedKeyName\": \"originalKey\",\n", |
| 297 | + " \"source\": \"/document/normalized_images/*/original\",\n", |
| 298 | + " \"sourceContext\": null,\n", |
| 299 | + " \"inputs\": []\n", |
| 300 | + " }\n", |
| 301 | + " ]\n", |
| 302 | + " }\n", |
249 | 303 | " ]\n", |
250 | 304 | " }\n", |
251 | 305 | "}\n", |
|
0 commit comments