AI enrichment tutorial - Jupyter Notebook

Demonstrates AI enrichment by building an indexing pipeline that detects and extracts text and text representations of images and scanned documents stored as blobs in Azure Blob storage. This sample leverages cognitive skills from the Cognitive Services APIs, such as entity recognition and language detection. It uses the REST APIs to make calls to Azure Cognitive Search, including index definition, data ingestion and AI enrichment, and query execution.

This sample is a Jupyter Python3 .ipynb file used in Python Tutorial: Call Cognitive Services APIs in an enrichment pipeline.


File/folder Description
PythonTutorial-AzureSearch-AIEnrichment.ipynb Jupyter Python notebook.
.gitignore Define what to ignore at commit time. Guidelines for contributing to the sample. This README file.
LICENSE The license for the sample.



  1. Clone or download this sample repository.
  2. Extract contents if the download is a zip file. Make sure the files are read-write.

Running the sample

  1. On the Windows Start menu, select Anaconda3, and then select Jupyter Notebook.
  2. Open the PythonTutorial-AzureSearch-AIEnrichment.ipynb file in Jupyter Notebook.
  3. Replace and with the service and api-key details of your search service.
  4. Replace with a connection string to an Azure Blob storage resource that you created, and to which you uploaded content files of various file types.
  5. Run each step individually.

By sequentially executing each step, you can verify the printed response status or response output appears before continuing to the next step. The step that creates the indexer, in particular, may take a few minutes to complete. See the tutorial for more details.