AI-102 Question 372
Select 4You are building an Azure Cognitive Search pipeline to process unstructured documents. You need to implement a custom skill to extract specific entities from the text and include it in a skillset. Which of the following steps must you take to correctly integrate the custom skill into the pipeline?
- A
Define the custom skill in the skillset JSON with the appropriate inputs and outputs.
- B
Configure the custom skill as an Azure Logic App and reference it in the skillset.
- C
Deploy the custom skill as an Azure Function and provide its endpoint URL in the skillset.
- D
Add the custom skill to the skillset as a skill of type
webApi. - E
Ensure the custom skill accepts and returns data in the expected JSON format defined by Cognitive Search.
Show answer and explanation
Correct answers: A, C, D, E
Explanation
To integrate a custom skill into an Azure Cognitive Search skillset, you must define it in the skillset JSON, ensuring proper configuration of inputs and outputs. The skill must be implemented as a web API (commonly hosted as an Azure Function) and referenced in the skillset as a skill of type webApi. Additionally, the custom skill must conform to the expected JSON input-output structure required by Azure Cognitive Search to ensure smooth data processing through the pipeline.
- A. Correct.
Correct: Defining the custom skill in the skillset JSON with the required inputs and outputs is necessary for the skill to function as part of the skillset.
- B. Incorrect.
Incorrect: While Azure Logic Apps can be used for workflows, a custom skill must be implemented as a web API (e.g., using an Azure Function or similar service).
- C. Correct.
Correct: Deploying the custom skill as an Azure Function and providing its endpoint URL is a common approach to integrate custom skills into Azure Cognitive Search.
- D. Correct.
Correct: Custom skills must be added to the skillset as a
webApitype to be properly recognized and executed in the pipeline. - E. Correct.
Correct: Custom skills require specific input and output JSON structures, as Cognitive Search processes data in a predefined format.