Configure an enrichment cache (preview)

Note

Foundry IQ (Azure AI Search) provides direct indexing and query APIs alongside higher-level knowledge source and knowledge base APIs for managed retrieval. Use the Azure portal, REST APIs, or Azure SDKs to configure these capabilities, or connect agents to knowledge bases in the Microsoft Foundry portal.

Important

Enrichment caching is in Public Preview and is subject to the Supplemental Terms of Use for Microsoft Azure Previews. For preview terms specific to this feature, see Preview functionality.

This article explains how to add caching to a skillset pipeline so that you can modify downstream enrichment steps without a full rebuild every time. Enrichment caching (preview) requires a preview REST API. By default, a skillset is stateless, and changing any part of its composition requires a full rerun of the indexer. With an enrichment cache, the indexer determines which parts of the document tree must be refreshed based on skillset or indexer definition changes. The indexer preserves and reuses existing processed output where possible.

You place cached content in Azure Storage by using a connection string that you provide. The indexer creates these objects when it runs. Consider the enrichment cache an internal component managed by your Foundry IQ (Azure AI Search) service that you must not modify.

Important

An enrichment cache isn't a backup of skillset outputs, indexer state, or indexed documents. It doesn't track which documents complete processing. For large data sources, review the Limitations section before enabling caching.

  • A container named ms-az-search-indexercache-<alpha-numeric-string>
  • Tables named MsAzSearchIndexerCacheIndex<alpha-numeric-string>

Prerequisites

  • Azure Storage for storing cached enrichments. The storage account must be general purpose v2.

  • For blob indexing only, if you need synchronized document removal from both the cache and index when blobs are deleted from your data source, enable a deletion policy in the indexer. Without this policy, document deletion from the cache isn't supported.

You should be familiar with setting up indexers and skillsets. Start with indexer overview and then continue on to skillsets to learn about enrichment pipelines.

Limitations

Caution

If you're using the SharePoint indexer, avoid incremental enrichment. Under certain circumstances, the cache becomes invalid. To reload it, perform an indexer reset and full rebuild.

Large data sources have an additional cache limitation.

Caution

For large data sources, an enrichment cache can increase total reprocessing when long-running skills, repeated interruptions, or frequent skill failures occur. The indexer prioritizes correctness over minimizing reprocessing, so a cache backlog from repeated interruptions amplifies retry behavior. This behavior is expected, not a bug.

To recover from a growing cache backlog, partition the data source into smaller containers or virtual folders. Then use parallel indexers pointing to the same index. To disassociate the cache, set the cache property to null on the indexer. See Index large data sets for guidance on the partitioning pattern.

Permissions

A Foundry IQ identity needs write access to Azure Storage:

  • Storage Blob Data Contributor
  • Storage Table Data Contributor

The connection string syntax determines whether a system-assigned or user-assigned identity is used. For more information, see Connect to Azure Storage using a managed identity.

Set the cache property

Use this procedure for both new and existing indexers.

In the indexer definition, set cache with:

  • (Required) storageConnectionString set to an Azure Storage connection string.
  • (Optional) enableReprocessing (true by default). Set it to false to suspend incremental enrichment temporarily, and switch it back to true later.
  1. On the left, select Indexers.

  2. Select Add indexer to create a new indexer, or open an existing one in JSON edit mode.

  3. Enable incremental enrichment, set the enrichment cache storage account, and save the indexer.

    Screenshot of the Azure portal option for enrichment cache.

  4. Reset the indexer if it already exists.

  5. Run the indexer. This one-time full rebuild seeds the cache. After it's loaded, incremental reuse applies on subsequent runs.