Hello @Nuno Rodrigues the short answer is yes. "A skillset is a reusable object in Azure AI Search that's attached to an indexer."
So when creating a skillset, you do need to specify a target index through the indexProjections
configuration. The indexProjections
property in your skillset definition is primarily used for defining how data from different source indexes should be mapped and combined into a target index. However, it doesn't mean that the skillset itself is directly tied to a specific index.
To your second question, here's how you can use a skillset as a general recipe for multiple indexes:
- Create a skillset with the desired skills and parameters. This skillset can include a combination of built-in and custom skills.
- When you create or update an index, you can specify the skillset to be applied to that index. This effectively applies the recipe defined in the skillset to the data in the index.
{
"name": "my_general_skillset",
"skills": [
{
"name": "CustomSkill1",
"description": "A custom skill for processing text",
// ... skill configuration
},
// ... other skills
]
}
When creating or updating an index, you can specify this skillset as follows:
{
"name": "my_index",
"skillsetName": "my_general_skillset"
}
Please let us know if you have further questions.
-Grace