Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Practical Guide to Azure Cognitive Services

You're reading from  Practical Guide to Azure Cognitive Services

Product type Book
Published in May 2023
Publisher Packt
ISBN-13 9781801812917
Pages 454 pages
Edition 1st Edition
Languages
Authors (3):
Chris Seferlis Chris Seferlis
Profile icon Chris Seferlis
Christopher Nellis Christopher Nellis
Profile icon Christopher Nellis
Andy Roberts Andy Roberts
Profile icon Andy Roberts
View More author details

Table of Contents (22) Chapters

Preface Part 1: Ocean Smart – an AI Success Story
Chapter 1: How Azure AI Changed Ocean Smart Chapter 2: Why Azure Cognitive Services? Chapter 3: Architectural and Cost Optimization Considerations Part 2: Deploying Next-Generation Knowledge Mining Solutions with Azure Cognitive Search
Chapter 4: Deriving Value from Knowledge Mining Solutions in Azure Chapter 5: Azure Cognitive Search Overview and Implementation Chapter 6: Exploring Further Azure Cognitive Services for Successful KM Solutions Chapter 7: Pulling It All Together for a Complete KM Solution Part 3: Other Cognitive Services That Will Help Your Company Optimize Operations
Chapter 8: Decluttering Paperwork with Form Recognizer Chapter 9: Identifying Problems with Anomaly Detector Chapter 10: Streamlining the Quality Control Process with Custom Vision Chapter 11: Deploying a Content Moderator Chapter 12: Using Personalizer to Cater to Your Audience Chapter 13: Improving Customer Experience with Speech to Text Chapter 14: Using Language Services in Chat Bots and Beyond Chapter 15: Surveying Our Progress Chapter 16: Appendix – Azure OpenAI Overview Index Other Books You May Enjoy

Preface

Azure Cognitive Services is a set of pre-built AI solution APIs that can be leveraged from existing applications, allowing customers to take advantage of Microsoft’s award-winning vision, speech, text, and decision AI capabilities. Developers working with Azure Cognitive Services will be able to get hands-on with this practical guide and deploy AI solutions. The book provides industry-specific examples of implementations to get you into production in no time. You’ll begin with an overview of how Azure Cognitive Services have been categorized and the benefits of embracing AI solutions for practical business applications. Next, we’ll dive into Ocean Smart, a technically advanced seafood distributor that has adopted all the benefits the Azure platform has to offer by using Cognitive Services to attain operational efficiencies and predictive capabilities. Later, you’ll learn how they implemented the Vision capabilities for quality control, Forms Recognizer to streamline supply chain nuances, Language Understanding to improve their customer service, Cognitive Search for a next-generation knowledge mining solution, and so on. By the end of this book, you will be able to implement various Cognitive Services solutions that will help you to drive efficiencies, reduce costs, and improve the customer experience at your organization.

Who is this book for?

The readership for this book includes technology leaders, data scientists, and software engineers looking to implement Azure Cognitive Services with sample use cases derived from success stories. Experience with Python will be required, as well as an overall understanding of the Azure portal, and related services such as Azure Data Lake Storage and Azure Functions are also needed to get the best from this book.

What this book covers

Chapter 1, How Azure AI Changed Ocean Smart, will give a brief overview of Ocean Smart, a fictitious company, with real-world examples of how Azure Cognitive Services digitally transformed the company to achieve operational excellence. From there, we’ll give an overview of Azure Cognitive Services, ways to consider costs in terms of ROI and TCO implications, and some architectural considerations to reference from the whole Azure deployment.

Chapter 2, Why Azure Cognitive Services?, will give a history of Azure Cognitive Services, with an overview of the intent in developing these services, the focus areas that Cognitive Services targets, and the investments Microsoft is making in the services. At the end of this chapter, you will understand what services have been developed and why, as well as gain an understanding of what to expect from future enhancements.

Chapter 3, Architectural and Cost Optimization Considerations, offers an overview of how Cognitive Services are costed, with examples of workloads that Ocean Smart developed for estimation purposes. We will also talk about ways Ocean Smart was able to optimize its Azure architecture and deployments to save costs and reduce complexity for the entire set of solutions it deployed. We will also describe aspects of data ingestion as part of the overall development process. At the end of this chapter, you will better understand what common architectures exist for deployments of cognitive services.

Chapter 4, Deriving Value from Knowledge Mining Solutions in Azure, describes briefly the history of knowledge mining solutions and their purpose. We will then compare the additional functions and features that can be added with Azure AI, using example solutions, and see what value they provide to enhance traditional deployments, allowing for enhanced searches and the analysis of stored documents, reducing significant time spent tagging and describing documents inputted by humans. By invoking Cognitive Search and other Cognitive Services, we’ll discuss how there tremendous amounts of information were uncovered across the whole document library at Ocean Smart.

Chapter 5, Azure Cognitive Search Overview and Implementation, offers an overview of Azure Cognitive Search, how it works with related Azure services, how the product is built architecturally, and how it was deployed for Ocean Smart. This chapter will introduce the search mechanism and how related services such as OCR, key phrase extraction, and named entity recognition help staff at Ocean Smart more quickly answer questions they have about their documents and data.

Chapter 6, Exploring Further Azure Cognitive Services for Successful KM Solutions, provides an overview of other Cognitive Services Ocean Smart used that are commonly combined with Azure Cognitive Search to build a fully comprehensive knowledge mining solution. We will look at how technologies such as OCR and image recognition have increased in effectiveness to add considerable value to traditional knowledge mining solutions, as well as the services that can be used for enhancement.

Chapter 7, Pulling It All Together for a Complete KM Solution, provides step-by-step instructions on how Ocean Smart deployed a complete knowledge mining solution in Azure, including related Cognitive Services and how they’re all integrated. The related web services that call the APIs for execution will also be covered, in order to apply additional context on how all of the components work together.

Chapter 8, Decluttering Paperwork with Form Recognizer, offers an overview of the Forms Recognizer service, deployment considerations, and tools to accompany the service, which Ocean Smart used to optimize processes. We will describe the differences between prebuilt and custom form types for the accurate extraction of data from forms within their organization. This will serve as a foundation to streamline operations that currently require human intervention but can be automated with a high level of confidence with Forms Recognizer.

Chapter 9, Identifying Problems with Anomaly Detector, discusses how Ocean Smart uses the univariate and multivariate Anomaly Detector Cognitive Service to identify areas of concern in the organization and processes by analyzing data for anomalous activity. These activities can be related to quality concerns, security concerns, or equipment failures within the organization, which can cost significant amounts of money.

Chapter 10, Streamlining the Quality Control Process with Custom Vision, explores how Ocean Smart puts many of its species of seafood products through a rigorous quality control process, identifying irregular products before they are packaged and shipped to their customers. This process uses the Custom Vision service to identify the color, shape, size, and more information about the products for comparison with expected information about the species, which is produced with notification capabilities for production supervisors to take action.

Chapter 11, Deploying a Content Moderator, explains how, by using the Content Moderator service, Ocean Smart can ensure that all website content is published without the potential to offend any consumers of the related material on blogs, social media, and the customer service portal. These postings can take the form of text, images, and video, and deployment saves human inspectors significant time and effort.

Chapter 12, Using Personalizer to Cater to Your Audience, explores how Ocean Smart was able to use the Personalizer service to build capabilities into its sales portal and make it a mainstay, including the ability to relate, couple, and recommend products and services to customers through e-commerce platforms. We will go through the development process, cover reinforcement learning, and configure the Personalizer loop and improvements to the deployed service.

Chapter 13, Improving Customer Experience with Speech to Text, delves into how a great customer experience is becoming more and more critical for successful businesses in this climate of on-demand everything. If a person has a poor experience with a company, they’re sure to let the world know as quickly as possible, using as many social media outlets as possible. Because of this, Ocean Smart wanted a better system to improve how customer calls were handled, setting a precedent for training customer service representatives. This chapter will describe how, by using Azure Speech services to capture customer call transcripts, Ocean Smart was able to dramatically improve the experience for its customers.

Chapter 14, Using Language Services in Chat Bots and Beyond, explains how to further improve the customer experience. Ocean Smart deployed a chatbot within their website to help customers get support or find what they need. To make the chat bot more effective, they deployed the Language Understanding and Translator Cognitive Services, which helps any customer enter a question in any of the supported languages and receive logical answers and receive support for their questions without any human intervention, only being directed to a human if necessary.

Chapter 15, Surveying Our Progress, gives an overview of how Ocean Smart was able to dramatically improve operational efficiencies by deploying Cognitive Services and the great accomplishments made. We will also explore future projects that can be undertaken to further take advantage of what this advanced technological suite offers.

Chapter 16, Appendix – Azure OpenAI Overview, provides a baseline understanding of the OpenAI API services in Azure. We will explore the various APIs and models, as well as their use cases within organizations. Finally, we will discuss where we feel AI is going and where enhancements can be made, and dispel some misconceptions about the services.

To get the most out of this book

When you get started with your own workloads, using the various chapters as a reference, there are several areas you will want to have experience with. First, for a user new to Azure, you will want to have a good understanding of navigating the portal, how subscriptions are organized, and ways to control costs. Although it is not required to pass the exam, using the Microsoft AZ-900 exam preparation material will give you a good foundation for best practices. You will also want to have a minimum of Contributor permissions to be able to freely deploy resources as required. The following is a list of other tools that will be used commonly to complete the work:

Base application

Operating system requirements

Visual Studio Code with Azure extensions

Windows, macOS, or Linux

Azure data tools with Azure extensions

Windows, macOS, or Linux

Python versions specific to each service

Windows, macOS, or Linux

Each of the preceding tools is free to download and easy to find with a simple search online. There are situations where having the full version of Visual Studio may offer more capabilities than the free tools listed here, so it may be advantageous to check with your organization whether you can be assigned a license.

If you are using the digital version of this book, we advise you to type the code yourself or access the code from the book’s GitHub repository (a link is available in the next section). Doing so will help you avoid any potential errors related to the copying and pasting of code.

Download the example code files

You can download the example code files for this book from GitHub at https://github.com/PacktPublishing/Practical-Guide-to-Azure-Cognitive-Services. If there’s an update to the code, it will be updated in the GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Conventions used

There are a number of text conventions used throughout this book.

Code in text: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “The demo app will also require a script to run when the container is executed. Create a file called docker-entrypoint.sh with the following contents."

A block of code is set as follows:

#!/bin/bash
python manage.py collectstatic --noinput
python manage.py migrate
python manage.py createsuperuser --noinput

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

pipenv install azure-ai-formrecognizer

Any command-line input or output is written as follows:

az cognitiveservices account keys list \
--name OceanSmartCh14ContentModerator \
--resource-group Chapter14

Bold: Indicates a new term, an important word, or words that you see on screen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “After you remind the user not to send personal information to a bot, repeat the dialog by adding Dialog Management -> Repeat this dialog.

Tips or important notes

Appear like this.

Get in touch

Feedback from our readers is always welcome.

General feedback: If you have questions about any aspect of this book, email us at customercare@packtpub.com and mention the book title in the subject of your message.

Errata: Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you have found a mistake in this book, we would be grateful if you would report this to us. Please visit www.packtpub.com/support/errata and fill in the form.

Piracy: If you come across any illegal copies of our works in any form on the internet, we would be grateful if you would provide us with the location address or website name. Please contact us at copyright@packt.com with a link to the material.

If you are interested in becoming an author: If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, please visit authors.packtpub.com.

Reviews

Please leave a review. Once you have read and used this book, why not leave a review on the site that you purchased it from? Potential readers can then see and use your unbiased opinion to make purchase decisions, we at Packt can understand what you think about our products, and our authors can see your feedback on their book. Thank you!

For more information about Packt, please visit packtpub.com.

Share Your Thoughts

Once you’ve read Practical Guide to Azure Cognitive Services, we’d love to hear your thoughts! Please click here to go straight to the Amazon review page for this book and share your feedback.

Your review is important to us and the tech community and will help us make sure we’re delivering excellent quality content.

Download a free PDF copy of this book

Thanks for purchasing this book!

Do you like to read on the go but are unable to carry your print books everywhere?

Is your eBook purchase not compatible with the device of your choice?

Don’t worry, now with every Packt book you get a DRM-free PDF version of that book at no cost.

Read anywhere, any place, on any device. Search, copy, and paste code from your favorite technical books directly into your application.

The perks don’t stop there, you can get exclusive access to discounts, newsletters, and great free content in your inbox daily

Follow these simple steps to get the benefits:

  1. Scan the QR code or visit the link below

https://packt.link/free-ebook/9781801812917

  1. Submit your proof of purchase
  2. That’s it! We’ll send your free PDF and other benefits to your email directly
lock icon The rest of the chapter is locked
Next Chapter arrow right
You have been reading a chapter from
Practical Guide to Azure Cognitive Services
Published in: May 2023 Publisher: Packt ISBN-13: 9781801812917
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}