Skip to content

mikeg98/azure-search-python-samples

 
 

Repository files navigation

Python sample repository for Azure Cognitive Search

This repository contains Python sample code used in Azure Cognitive Search quickstarts, tutorials, and examples. You can use the shared (free) Azure Cognitive Search service to run any sample in this repository.

Quickstart - Azure Cognitive Search

This sample is a Jupyter Python3 .ipynb file used in Quickstart: Create and query a search index using a Jupyter Python notebook. Learn how to use the azure-search-documents client library in the Azure SDK for Python to make service connections, create and load indexes, and run basic queries.

Tutorial - Add a skillset (enrichments) to an indexing pipeline

This sample is a Jupyter Python3 .ipynb file used in the Python Tutorial: Call Cognitive Services APIs in an Azure Cognitive Search indexing pipeline. This sample demonstrates cognitive search functionality, adding AI enrichments from Cognitive Services to extract, detect, and analyze information from image files or large unstructured document files.

Tutorial - Image processing

This sample is a Jupyter Python3 .ipynb file that shows how to work with image skills in a skillset. Although the skillset performs useful operations, including Optical Character Recognition (OCR) and redaction of personally identifying information, the sample's purpose is to demonstrate the coordination of image file handoffs from one skill to the next.

In this sample, skillset output is sent to a knowledge store in Azure Storage. Because knowledge store is not yet supported in the azure-search-documents python library, the Search REST APIs are used instead.

Tutorial - Train and deploy a custom skill with Azure Machine Learning

This sample is a Jupyter Python3 .ipynb file. It's used in the Tutorial: Build and deploy a custom skill with Azure Machine Learning. This sample provides an end-to-end walk through for training and deploying an aspect-based sentiment model to an Azure Kubernetes cluster for consumption as a custom skill in a Cognitive Search enrichment pipeline. Azure Machine Learning is used to train and deploy the model.

In this sample, skillset output is sent to a knowledge store in Azure Storage. Because knowledge store is not yet supported in the azure-search-documents python library, the Search REST APIs are used instead.

About

Azure Search Python sample code

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 97.8%
  • Python 2.2%