Create a Custom Skill For Azure AI Search
Introduction
By extracting more
information from the source data, you can significantly enhance an index using
Azure AI Search's predefined skills. However, there can be times when you have
certain data extraction requirements that call for some bespoke functionality
and cannot be satisfied by the established abilities.
For example:
- Integrate the Form Recognizer service to extract data from forms
- Consume an Azure Machine Learning model to integrate predicted values into an index
- Any other custom logic
Custom skills can be
implemented as web-hosted services (like Azure Functions) that enable the
necessary interface for integration into a skillset in order to support these
scenarios.
Define Custom Skill Schema
The expected structure
for input and output data that is required by abilities in an Azure AI Search
skillset must be implemented by your custom skill.
Input Schema
A JSON structure with a
record for every document to be handled is defined by the input schema for a
custom skill. Every document contains a data payload with one or more inputs,
as well as a unique identity.
Output Schema
The input schema is
reflected in the schema for the outcomes that your custom skill returns. It is
believed that the output includes a record for every input record, containing
either the skill's outcomes or specifics of any mistakes that were made.
The output value in this
schema is a property bag that can contain any JSON structure, reflecting the
fact that index fields aren't necessarily simple data values, but can contain
complex types.
Conclusion
We have successfully
learnt the basics of custom skill for Azure AI search.
Comments
Post a Comment