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.
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.
This sample shows how to create, load, and query a search index in Python using the Azure.Search.Documents library in the Azure SDK for Python. It also includes application code and sample data so that you can see search integration in the context of a full app. The data is from https://github.com/zygmuntz/goodbooks-10k. The app is an Azure Static Web app, using the React library for user interaction, and Azure Function to handle the query requests and responses in the application layer.
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.
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.
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.