Suchit Bhayani , Currently if you need to vectorize images and JSON files or arrays existing in the same container, you may use two different indexers pointing to the same index and have one with the JSON array processing with a model and one with the images processing with the other model.
Currently, an indexer doesn't have a way to specify what type of processing a file may have (vs the other if different models need to do different things).
-If you wish you may share your feedback on Uservoice - All of the feedback, you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure. Additionally, users with a similar request can up-vote your post and add their comments.
Having mentioned that, I have relayed this feedback internally to our product team. There is no ETA to share on this yet.
Just to highlight - Here is a quick general sample of how an indexer only including JSON files with jsonArray parsing mode and one excluding the JSON files would look like:
{
"name": "json-indexer",
"dataSourceName": "your-data-source",
"targetIndexName": "your-index",
"skillsetName": "json-skillset",
"parameters": {
"configuration": {
"parsingMode": "jsonArray",
"includedFileNameExtensions": ".json"
}
},
"outputFieldMappings": [],
"schedule": {
"interval": "PT5M",
"startTime": "2024-08-29T00:00:00Z"
}
}
{
"name": "image-indexer",
"dataSourceName": "your-data-source",
"targetIndexName": "your-index",
"skillsetName": "image-skillset",
"parameters": {
"configuration": {
"excludedFileNameExtensions": ".json"
}
},
"outputFieldMappings": [],
"schedule": {
"interval": "PT5M",
"startTime": "2024-08-29T00:00:00Z"
}
}
For more info about supported types, inclusions and exclusions, please checkout the doc: Indexer overview - Azure AI Search | Microsoft Learn
If my answer helped (pointed, you in the right direction) > please click Accept Answer - it will benefit the community/users to find the answer quickly.