Generative AI can answer employee questions straight from your policy documents
One prompt returns an ice cream tagline, another turns a plain question about customers in Texas named Jane into a SQL query. Enterprises across finance, healthcare and education now want that power working on their own call recordings, contracts and policy files. Namrata Sherkhane, a senior cloud solution architect at Microsoft, walks through the patterns she sees with customers, leaving one question: what does the architecture behind a useful answer look like?
See three Azure reference architectures for document automation, call analytics and enterprise Q&A
Namrata Sherkhane, Senior Cloud Solution Architect at Microsoft, introduces generative AI and the model families in Azure OpenAI Service (GPT, Codex and DALL-E). She walks through the enterprise use cases she sees most often with customers and outlines reference architectures for document automation, contact center analytics and Q&A over company documents.
“So it's especially like you are talking to, uh, um, anybody in natural language and you're getting the responses also in natural language.”
“So you actually are now converting and normal question to a code.”
What you will learn
Distinguish machine learning, deep learning and generative AI and what each one does.
Match Azure OpenAI model families (GPT-3.5, GPT-4 and ChatGPT, Codex, DALL-E) to text, code and image tasks.
Identify common enterprise use cases such as summarization, code generation, semantic search and process automation.
Sketch a document Q&A pipeline that combines Form Recognizer, Cognitive Search and Azure OpenAI.
Plan a contact center analytics flow that converts calls to text and summarizes them with Azure OpenAI.
Key takeaways from the speaker
Understand Azure OpenAI
OpenAI use cases
Details
Level
Beginner
Format
Talk
Technical depth
Introductory technical
For
Early career, Mid-career, Senior individual contributor
Length
19:34
Published
June 2023
Questions this talk answers
How does generative AI differ from earlier machine learning and deep learning?
Machine learning trains machines on data sets and deep learning uses neural networks to make decisions, while generative AI creates new text and visuals and lets you converse in natural language.
Which models does Azure OpenAI Service provide?
It offers pretrained foundation models: GPT-3.5, GPT-4 and ChatGPT for text and conversation, Codex for code and DALL-E for images, which can be tuned with your own data.
What are the most common enterprise use cases for Azure OpenAI?
Content generation, summarization of calls and documents, code generation from natural language, semantic search and business process automation, often combined with other Azure AI services.
How do you build question answering over enterprise documents?
Documents are cracked and chunked with Azure Form Recognizer, indexed with Cognitive Search, and a user's question is answered from the index through Azure OpenAI in natural language.
Can speech AI handle different accents and non-native speakers?
Azure Speech has parameters for accent and dialect, and you can customize and train the model with the accent you need.
About this talk
Discuss on OpenAI's powerful language models including the GPT-3, Codex and Embeddings model series.
How Azure Open AI helps customers to solve for real enterprise use cases
Okay. So as you all have been hearing about the artificial intelligence, it's a, it's a big, you know, a box basically, which has a number of things into it, which is especially a computer science field, uh, wherein, uh, a lot of R and D used to happen on how could we replicate the human intelligence, um, and create a machine, which could, which could, uh, replicate how, how human intelligence is.
So then to kind of, um, you know, it was more explored. We had something called as machine learning, which is especially to training, you know, training, uh, on different aspects on the data set so that, uh, a machine could work, uh, onto the data, which we have given to it. Right. Then we had something called as deep learning around 2017, which is actually a neural network based process. Right. Um, and it helps you to make decisions.
And now in the current era, we, which we live in is the era of generative AI. And most of you would have heard about it. Right. And what does it really do with actually is, and, uh, generative AI, um, model, which is called as chat GPT as well, uh, which creates new written visuals. And also gives you, um, and also gives you, um, a lot of information, uh, onto the existing data, as well as you can give your data and get the output. So it's especially like you are talking to, uh, um, anybody in natural language and you're getting the responses also in natural language.
Okay. So as I mentioned, the AI technology is everywhere and it has been spoken about. And globally, we have so many customers also coming to Microsoft to discuss on, you know, the, uh, uh, the chat GPT capabilities, how we can enable, uh, the chat GPT for their businesses. And, um, uh, uh, but the large language models, right. Like the chat GPT, the whole world is actually, um, um, um, you know, by taken by strong and in parts because they are, they can draw a vast storage of data leveraging the massive computing power, you know, today, uh, which is available onto the cloud.
Right. Um, so Microsoft has heavily invested along with, you know, open AI, we have a very good partnership where in, um, uh, you know, a lot of models have been created onto the Microsoft Azure cloud, basically. And, uh, open AI, which is a company who has created the chat GPT and the different models, which you can see. Uh, but what Microsoft has done is that, you know, as part of their, uh, vision, they have done, uh, a partnership with the open AI and helping our customers, especially to, to roll out the, uh, use cases on chat GPT enterprise wise, right.
So there are different models. One is the text conversation, code model, and the images, uh, model, basically. I'll just go a little deeper into it. So, um, generative AI, um, you know, has different models, different models, which I mentioned now, first example, which you see, right. If you give, um, such a prompt to an generative AI, which is like, like write a tagline for an ice cream shop.
And the response, which you get is absolutely like, we serve up the smiles with every scoop. Right. So, uh, it is really the response, what you would think like in tagline. So it understands what is the question, what is the prompt and it, uh, accordingly gives you the answer. Um, the second response, which you see, it is especially the conversation response that a question has been asked that I'm having some trouble with my Xbox.
And the responses with them with the troubleshooting, uh, options onto that issue. Right. And then again, and question on top of it is asked that how, you know, what are the recommended, uh, games for an 14 year old. So depending upon what are the games in Xbox, it would give you a response for the games, which would be, you know, recommended for an 14 year.
The third option that you see here is the prompt for an, uh, SQL query. So if you see here is in table structure, which is given for an customer table, and these are the columns basically. And we are just asking the chat APT basically, um, uh, the generative AI basically to create a query, uh, for all the customers in Texas named Jane.
So this is the response which you get. So you actually are now converting and normal question to a code. This is an example of SQL, but you could do it with, you know, Java C plus plus, or you could do it with Python X, Y, Z, right. The next one is the very interesting part that you give it prompt and then the output, which is expected as an image out of that prompt.
So basically you're asking, say a ball of fire within vibrant colors, right. To show this, to show the speed of innovation at a media and entertainment company. So all of the words, which is given in the prompt, right. According to that, you are actually getting a response, which would be more applicable, say for media and entertainment, the vibrant current and the speed as well.
Right. Everything is taken into consideration and you get this response. So this is an example of how, what are the, you know, what can and generative AI do now, um, coming a little more deeper onto what are the models behind the scene, which helps you to give this information. Right. So Azure open AI service actually has the large preteen foundation, AI models, custom tunable as well with your parameters and your data.
So, uh, as of now, which you would be doing in trial basis would be onto the existing, but definitely you can train the model onto your data set. So the first box, which you see here is an text model, which is the, uh, GPT four or 3.5 and GPT four. Plus we have the chat GPT, which is in conversational model.
So the first two examples, which I was showing you here are, uh, the text models. The second example is of the, is of the codex model. So, which is actually generating, uh, the coding, uh, for you. The third model is your dot e model, which is an generative image modeling. Okay. Talking a little bit more about what Azure provides.
Azure AI has a number of services as part of the portfolio of AI. Right. So, um, we have, um, different services and the Azure open AI comes as part of our cognitive services. So for an enterprise level business problem, you could stitch all of the, uh, you know, couple of these, maybe, uh, solutions or the, uh, services, which we have along with our other, other services and create an enterprise level solution.
Okay. All right. So Azure open AI service capability is actually, uh, plentiful. Right. You can actually have limitless generation with a few line of inputs and, um, be able to, um, uh, you know, use readily available model into your use cases. Right. So you don't have to really build anything, but you can go ahead and use these models for your use cases.
Now coming to what are the different, uh, you know, top use cases, which we generally come across with our customers. Uh, and these customers are from all the industries. Right. From the finance to your healthcare to education, uh, to it industry. Right. So, um, one of the most common use cases is the core content generation. Uh, content generation. So like, for example, for the call center analytics, uh, it actually would help you to automatically generate the responses for the customer inquiries.
For example, it is, it's in bank. And if there are any questions, um, then you could do an, um, summarization or content generation as well. On top of it. Right. Uh, generally generate, generate the personalized UI for your website on summarization part, which I also touch based, um, is that, uh, you have a lot of call records, right.
Of your call center analytics, for example, right. As part of your analytics. So you could actually create a summary of say 10 minutes long conversation over in phone call, or, uh, you could do whatever history conversations has been done. You would want to know the summary of what the customer is really looking forward for, right. Or you would want the subject matter expert documents are there.
And if you want to summarize them, for example, there are legal documents, contract documents, or financial reporting, and you have a lot of numbers out of it and you want a summary of it, right. Or you want to summarize the social media trends, for example. Um, the next is the code generation. That's the codex model, uh, in that, uh, you actually convert the natural language, uh, to say SQL for the telemetry data.
You can convert the natural language to query property data models. And also you could use it for code documentation would, uh, in fact code summarization. You can also use it for, um, a number of more things like test cases as well. I mean, clubbing the different models basically. Last but not least the semantic search. So search reviews for a specific product or service, right.
Uh, you have a number of, uh, reviews and for that, you would want to, um, find out for specific products or, uh, services and information discovery and, uh, knowledge mining. So you have, for example, say an enterprise, and you have a lot of documentation around the policies. There might be finance policies. There might be HR policies. There might be travel X, Y, Z policies, right.
So if you want to, uh, you know, have an, um, uh, system wherein your employees just ask about a question and, um, um, um, you actually get a response, uh, a very generative response, basically, uh, while it fetches all looks for all the information in your documentation or the policy documents of your HR. Say a travel, um, you know, how many days do I, uh, really get leaves in a year, for example, and the policy details would be searched, uh, depending upon the region X, Y, Z, you would fetch the data and you would get an output.
So that's one of the example. So example of the multi-model use cases, which I was mentioning that you could actually bring, bring in different, um, models, uh, which we have as part of our Azure AI portfolio and then create an, uh, holistic solution. For example, end-to-end call center analytics, which could use the classification model, um, the sentiment model, the entity extraction, summarization, summarization, we would be using the open AI basically, and the email generation also the chat GPT, basically the model, uh, which we could be leveraging.
So, uh, for, uh, for customer 360, you would basically be, uh, using hyper-personalization using the time, timely summarization of customer queries and, uh, the trends, the search and the content generation. So for this, you would use a couple of services, basically open AI services, cognitive search, and also the trend for trend analysis, different, uh, other services. So we'll go a little deeper onto all of, you know, a couple of them basically use cases.
Uh, the last one is the business process automation. So search through the structured and unstructured document, generate code to query or data models or code generation. So these are the different examples. Now I'll just, um, take you a little deeper onto different architectures on, uh, how you could be using the Azure AI services along with the open AI and solve the actual problems.
So this document, uh, process automation, which actually talks about extracting the rich insights from your documents and then summarizing it, for example. So as I was just giving you an example of, um, a lot of, uh, you know, history documents, which you may have, there might be some legal documents, some contracts, some HR, you know, some finance, some, uh, different documents, right?
So in fact, documents related to employees, X, Y, Z, or if, if it's in, um, uh, you know, if it's in a company of insurance, so you would have the documents related to insurance, um, uh, claims. And, uh, uh, if it's the claim is related to your, uh, for, uh, for example, for vehicles, the vehicle information, maybe their pictures as well.
Right. So you would want to actually, um, do an automation process of, uh, processing all of these documents and getting an output say in, in your web app or, you know, as part of your power BI report. Correct. So first of all, what we will be doing is that we will crack the documents. What it really means is extract the information.
It might be a handwritten document. You may have images. So extract the entities out of your documents. And then you would actually in your, uh, uh, use form recognizer to extract this information. Plus you would add, then index it using our cognitive search. After that, after the indexing is done, you would actually be, uh, using the open AI for generating and response, um, basically on whatever questions have been asked onto your web application.
Or maybe send an analytics, for example, um, uh, to your power BI reports. Okay. So, um, uh, this is one of the flows. I will share, uh, the, another use case, which is the contact center analytics using speech API and the Azure open AI. So it actually is going to extract the rich insights from the call, uh, transcripts.
So when, whenever there is a call center call, right, there isn't a discussion, which has happened. Now those, that whole conversation has been, you know, brought into the Azure storage. And then what we really do is convert that particular speech, uh, it, uh, to text and then run an open AI service on top of it to basically summarize what, what is really asked for, right.
Or to understand what is the trend or the insights from your, from that specific conversation. Okay. All right. Um, considering the time I'll just go ahead. Um, this is the one example of the AI powered Q and a over the enterprise data sources. So this is the same example, which I was referring to that if an, if you consider an enterprise, you have so many different departments, right.
Um, uh, uh, wherein you would have so many different documents related to, uh, say HR finance, uh, right. Sales marketing, you would have related to employees. Correct. So, um, uh, this particular use case really talks about the, uh, Q and a over the enterprise data sources, which would really like an employee, ask you a question. And they get an answer by, um, uh, you know, by the whole systems, you know, crawling to all of the different, different documents and getting you the relevant information.
Okay. So how does, uh, how would it be done basically? Uh, so you have this document library, basically the store where you have all your documents. We will then be using, um, Azure form recognizer to extract the entities out of the document or to understand what exactly is written in those documents, right. Uh, that's the document cracking.
And, uh, you may also need to require, you know, document chunking with, which basically means that you, uh, you break the document. Um, and, uh, you break the document then after the form recognizer and, uh, uh, models run, you then actually create use in cognitive search to index them. And then you would actually have your user application, uh, which would ask a question, uh, for which you will, it will go to the index data.
It will get the answer. Uh, it will get the information. It will go to an open AI service, and then it will give an output, which will be an, uh, a natural language response, basically a natural language question and an answer basically from these documents. Okay. So considering the time, which I had, um, I am through with what I want to really wanted to share with all of you.
Um, thank you. And, uh, maybe if there are any questions, I hope you have put them in the chat. Um, all right. I see, um, Rayam has asked that how speech AI works with different accents. Okay. So, um, speech AI, if you talk about the Azure speech, um, uh, uh, AI model site, we have different parameters attached to it for the accent in the dialect.
Right. Uh, there are different parameters on which you could, uh, tune it. You could also give the accent to train the model, basically to understand this is the accent, which you want to, uh, fetch, uh, you know, the information from. Correct. And someone who is not a native speaker. Okay. So it is also a related question. So you would have to basically customize your model, which is also, uh, available and could be done.
Any more questions? Anybody has? Okay. I think we are right on the time also. And, um, uh, you could put onto the chat or anyone. I'm also sharing my LinkedIn profile for all of you. Uh, I think I did not copy the link. All right. There is one more question. Cool. Okay. So is it based on natural, uh, neural networks?
Yes. The deep learning models, which we have, um, are based on that. So definitely, you know, speech is one of the aspect to it. Uh, but after we generally process, you know, do the neural network processing or the deep learning on top of it, once we convert the speech into text. Right. So, yeah, we do have the deep learning models as well on top of which, you know, you could be, um, uh, doing further analysis.
Sure. So, um, thank you all for joining in. I hope you, um, enjoy the session and gain a little bit of knowledge. Um, thank you. And I'll, I'll, uh, request all of you to like my session if you find it useful and do connect with me on LinkedIn. Thank you so much. Bye. Take care.
Transcribed automatically; names checked against the speaker record. Select a time to jump there.
Article based on this talk
How enterprises put Azure OpenAI to work on their own data
Microsoft architect Namrata Sherkhane maps generative AI models to the use cases and reference architectures she sees most with customers.
In short
Generative AI becomes useful in a company when its models are connected to the company's own documents, calls and data. Namrata Sherkhane, Senior Cloud Solution Architect at Microsoft, explains the model families inside Azure OpenAI Service, the enterprise use cases customers ask for most, and three reference architectures that combine Azure OpenAI with other Azure AI services.
Key takeaways
Understand Azure OpenAI.
Learn the main OpenAI use cases.
From machine learning to a conversation in plain language
Sherkhane opens with a short history. Artificial intelligence began as a computer science effort to replicate human intelligence. Machine learning followed, training machines on data sets, and then deep learning, which uses neural networks to help make decisions. Today, she says, we live in the era of generative AI, which creates new written content and visuals and can work on existing data or on data you supply.
What makes it feel different is the interface. "So it's especially like you are talking to, uh, um, anybody in natural language and you're getting the responses also in natural language." (1:00)
She explains that many customers worldwide come to Microsoft asking how to enable ChatGPT capabilities for their businesses. Large language models draw on vast stores of data and the massive computing power now available in the cloud, and Microsoft has partnered with OpenAI to help customers roll out these use cases at enterprise scale.
Four prompts, three model families
To show what the models do, Sherkhane walks through four examples. A request for an ice cream shop tagline returns "we serve up the smiles with every scoop." A conversation about a misbehaving Xbox returns troubleshooting steps and then game recommendations for a 14 year old. A table structure plus a request for all customers in Texas named Jane returns a SQL query. A prompt for a ball of fire in vibrant colors, showing the speed of innovation at a media company, returns an image.
The SQL example is the one she dwells on: "So you actually are now converting and normal question to a code." (4:42) She adds that the same works for languages such as Java, C++ or Python.
Behind these examples sit the models in Azure OpenAI Service: GPT-3.5 and GPT-4 for text, ChatGPT for conversation, Codex for code and DALL-E for images. These are large pretrained foundation models that can be tuned with your own parameters and data, and Azure OpenAI sits inside Azure Cognitive Services, so it can be combined with other services into a single enterprise solution. Her point for teams starting out: "So you don't have to really build anything, but you can go ahead and use these models for your use cases." (7:08)
The use cases customers actually ask for
Sherkhane says the requests come from every industry, from finance and healthcare to education and IT. The most common patterns she lists are:
Content generation, such as automatically drafting responses to customer inquiries in a bank's call center or generating personalized website content.
Summarization of ten-minute phone calls, conversation histories, legal and contract documents, financial reports or social media trends.
Code generation with Codex, turning natural language into SQL for telemetry data, documenting and summarizing code, and generating test cases.
Semantic search across product reviews, and information discovery and knowledge mining across internal documentation.
The knowledge mining example is the one most organizations will recognize. "There might be finance policies. There might be HR policies." (9:49) An employee asks how many days of leave they get in a year, and the system searches the right policy for their region and returns a generated answer. She also describes multi-model solutions such as end-to-end call center analytics, which combine classification, sentiment, entity extraction, summarization and email generation, and customer 360 views built on hyper-personalization and timely summaries of customer queries.
Three reference architectures
Sherkhane then moves from use cases to architecture. The first is document process automation. Picture an insurer with vehicle claims, contracts and pictures. The first step is to crack the documents, which means extracting the information: "It might be a handwritten document. You may have images." (13:23) Azure Form Recognizer extracts the entities, Cognitive Search indexes them, and Azure OpenAI generates responses in a web app or feeds analytics into Power BI reports.
The second is contact center analytics. Call recordings land in Azure Storage, speech is converted to text, and Azure OpenAI summarizes what the customer was asking for and surfaces trends and insights.
The third is AI-powered Q&A over enterprise data sources. Documents from HR, finance, sales and marketing sit in a document library. Form Recognizer extracts what is written, documents are chunked, Cognitive Search indexes them, and a user's question travels through the index to Azure OpenAI, which returns a natural language answer drawn from those documents.
Accents, dialects and neural networks
In the Q&A, an attendee asks how speech AI copes with different accents. Sherkhane explains that Azure Speech has parameters for accent and dialect, and that for non-native speakers "So you would have to basically customize your model, which is also, uh, available and could be done." (17:27) Asked whether the models are based on neural networks, she confirms that the deep learning models are, and that further analysis runs on top once speech has been converted to text.
Watch the talk
"Azure Open AI Use cases" by Namrata Sherkhane, about 20 minutes: https://www.womentech.net/video/azure-open-ai-use-cases
About the speaker
Namrata Sherkhane works as a Senior Cloud Solution Architect with Microsoft. She focuses on helping enterprises with data strategy and AI solutions.
Questions this talk answers
How does generative AI differ from earlier machine learning and deep learning?
Which models does Azure OpenAI Service provide?
What are the most common enterprise use cases for Azure OpenAI?
How do you build question answering over enterprise documents?
Can speech AI handle different accents and non-native speakers?
Drafted with AI from the talk transcript. Editor review pending.
Frameworks and ideas mentioned
Customer 360
Cite this talk
Namrata Sherkhane. "Azure Open AI Use cases." WomenTech Network, 2023. https://www.womentech.net/video/azure-open-ai-use-cases