L'AI generativa può rispondere alle domande dei dipendenti direttamente dai documenti sulle policy
Un prompt restituisce uno slogan per una gelateria, un altro trasforma una semplice domanda sui clienti del Texas di nome Jane in una query SQL. Le aziende di finanza, sanità e istruzione vogliono ora sfruttare questa potenza sulle proprie registrazioni di chiamate, sui contratti e sui documenti delle policy. Namrata Sherkhane, senior cloud solution architect di Microsoft, illustra i modelli che osserva presso i clienti, lasciando una domanda: com'è fatta l'architettura dietro una risposta utile?
Scopra tre architetture di riferimento Azure per automazione documentale, analisi delle chiamate e Q&A aziendale
Namrata Sherkhane, Senior Cloud Solution Architect di Microsoft, introduce l'AI generativa e le famiglie di modelli di Azure OpenAI Service (GPT, Codex e DALL-E). Illustra i casi d'uso aziendali che incontra più spesso con i clienti e presenta architetture di riferimento per l'automazione documentale, l'analisi dei contact center e il Q&A sui documenti aziendali.
“Quindi è proprio come se steste parlando, ehm, uhm, con chiunque in linguaggio naturale e riceveste le risposte anche in linguaggio naturale.”
“Quindi di fatto state convertendo una domanda normale in codice.”
What you will learn
Distinguere machine learning, deep learning e AI generativa e capire cosa fa ciascuno.
Associare le famiglie di modelli di Azure OpenAI (GPT-3.5, GPT-4 e ChatGPT, Codex, DALL-E) ad attività su testo, codice e immagini.
Individuare i casi d'uso aziendali più comuni, come riepilogo, generazione di codice, ricerca semantica e automazione dei processi.
Delineare una pipeline di Q&A sui documenti che combina Form Recognizer, Cognitive Search e Azure OpenAI.
Progettare un flusso di analisi per contact center che converte le chiamate in testo e le riepiloga con Azure OpenAI.
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
In che cosa l'AI generativa differisce dal machine learning e dal deep learning precedenti?
Il machine learning addestra le macchine su set di dati e il deep learning usa reti neurali per prendere decisioni, mentre l'AI generativa crea nuovi testi e contenuti visivi e consente di conversare in linguaggio naturale.
Quali modelli offre Azure OpenAI Service?
Offre foundation model preaddestrati: GPT-3.5, GPT-4 e ChatGPT per testo e conversazione, Codex per il codice e DALL-E per le immagini, che possono essere ottimizzati con i propri dati.
Quali sono i casi d'uso aziendali più comuni per Azure OpenAI?
Generazione di contenuti, riepilogo di chiamate e documenti, generazione di codice dal linguaggio naturale, ricerca semantica e automazione dei processi aziendali, spesso in combinazione con altri servizi di Azure AI.
Come si costruisce un sistema di risposta alle domande sui documenti aziendali?
I documenti vengono analizzati e suddivisi in blocchi con Azure Form Recognizer, indicizzati con Cognitive Search, e la domanda dell'utente riceve risposta dall'indice tramite Azure OpenAI in linguaggio naturale.
L'AI vocale riesce a gestire accenti diversi e parlanti non madrelingua?
Azure Speech dispone di parametri per accento e dialetto, ed è possibile personalizzare e addestrare il modello con l'accento necessario.
Come funziona il Q&A sui documenti aziendali (73 s)
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
Come le aziende mettono al lavoro Azure OpenAI sui propri dati
L'architetta Microsoft Namrata Sherkhane collega i modelli di AI generativa ai casi d'uso e alle architetture di riferimento che incontra più spesso presso i clienti.
In breve
L'AI generativa diventa utile in un'azienda quando i suoi modelli sono collegati ai documenti, alle chiamate e ai dati dell'azienda stessa. Namrata Sherkhane, Senior Cloud Solution Architect di Microsoft, illustra le famiglie di modelli di Azure OpenAI Service, i casi d'uso aziendali più richiesti dai clienti e tre architetture di riferimento che combinano Azure OpenAI con altri servizi di Azure AI.
Punti chiave
Comprendere Azure OpenAI.
Conoscere i principali casi d'uso di OpenAI.
Dal machine learning a una conversazione in linguaggio semplice
Sherkhane apre con una breve storia. L'intelligenza artificiale è nata come tentativo dell'informatica di replicare l'intelligenza umana. È seguito il machine learning, che addestra le macchine su set di dati, e poi il deep learning, che usa reti neurali per supportare le decisioni. Oggi, afferma, viviamo nell'era dell'AI generativa, che crea nuovi contenuti scritti e visivi e può lavorare su dati esistenti o su dati forniti dall'utente.
Ciò che la rende diversa è l'interfaccia. "Quindi è proprio come se steste parlando, ehm, uhm, con chiunque in linguaggio naturale e riceveste le risposte anche in linguaggio naturale." (1:00)
Spiega che molti clienti in tutto il mondo si rivolgono a Microsoft chiedendo come abilitare le funzionalità di ChatGPT per le proprie attività. I large language model attingono a enormi quantità di dati e all'immensa potenza di calcolo oggi disponibile nel cloud, e Microsoft ha stretto una partnership con OpenAI per aiutare i clienti a realizzare questi casi d'uso su scala enterprise.
Quattro prompt, tre famiglie di modelli
Per mostrare cosa fanno i modelli, Sherkhane presenta quattro esempi. Una richiesta di slogan per una gelateria restituisce "serviamo sorrisi a ogni pallina". Una conversazione su una Xbox che non funziona bene restituisce i passaggi per risolvere il problema e poi consigli di giochi per un quattordicenne. Una struttura di tabella più la richiesta di tutti i clienti del Texas di nome Jane restituisce una query SQL. Un prompt per una palla di fuoco dai colori vivaci, che rappresenti la velocità dell'innovazione in un'azienda media, restituisce un'immagine.
L'esempio SQL è quello su cui si sofferma: "Quindi di fatto state convertendo una domanda normale in codice." (4:42) Aggiunge che lo stesso vale per linguaggi come Java, C++ o Python.
Dietro questi esempi ci sono i modelli di Azure OpenAI Service: GPT-3.5 e GPT-4 per il testo, ChatGPT per la conversazione, Codex per il codice e DALL-E per le immagini. Sono grandi foundation model preaddestrati che possono essere ottimizzati con parametri e dati propri, e Azure OpenAI fa parte di Azure Cognitive Services, quindi può essere combinato con altri servizi in un'unica soluzione aziendale. Il suo consiglio per i team che iniziano: "Quindi non dovete davvero costruire nulla, ma potete usare questi modelli per i vostri casi d'uso." (7:08)
I casi d'uso che i clienti chiedono davvero
Sherkhane afferma che le richieste arrivano da ogni settore, dalla finanza e sanità all'istruzione e all'IT. I modelli più comuni che elenca sono:
Generazione di contenuti, ad esempio la stesura automatica di risposte alle richieste dei clienti nel call center di una banca o la generazione di contenuti personalizzati per siti web.
Riepilogo di telefonate di dieci minuti, cronologie di conversazioni, documenti legali e contrattuali, report finanziari o tendenze sui social media.
Generazione di codice con Codex: trasformare il linguaggio naturale in SQL per i dati di telemetria, documentare e riepilogare il codice e generare casi di test.
Ricerca semantica sulle recensioni dei prodotti, oltre a scoperta delle informazioni e knowledge mining sulla documentazione interna.
L'esempio del knowledge mining è quello che la maggior parte delle organizzazioni riconoscerà. "Potrebbero esserci policy finanziarie. Potrebbero esserci policy HR." (9:49) Un dipendente chiede quanti giorni di ferie gli spettano in un anno e il sistema cerca la policy corretta per la sua regione e restituisce una risposta generata. Descrive anche soluzioni multimodello come l'analisi end-to-end dei call center, che combina classificazione, sentiment, estrazione di entità, riepilogo e generazione di email, e viste customer 360 basate sull'iperpersonalizzazione e su riepiloghi tempestivi delle richieste dei clienti.
Tre architetture di riferimento
Sherkhane passa poi dai casi d'uso all'architettura. La prima è l'automazione dei processi documentali. Si pensi a un assicuratore con sinistri auto, contratti e fotografie. Il primo passo è analizzare i documenti, cioè estrarne le informazioni: "Potrebbe essere un documento scritto a mano. Potreste avere immagini." (13:23) Azure Form Recognizer estrae le entità, Cognitive Search le indicizza e Azure OpenAI genera risposte in una web app o alimenta le analisi nei report Power BI.
La seconda è l'analisi dei contact center. Le registrazioni delle chiamate arrivano in Azure Storage, il parlato viene convertito in testo e Azure OpenAI riepiloga ciò che il cliente chiedeva e fa emergere tendenze e insight.
La terza è il Q&A basato sull'AI sulle fonti di dati aziendali. I documenti di HR, finanza, vendite e marketing si trovano in una raccolta documentale. Form Recognizer estrae ciò che è scritto, i documenti vengono suddivisi in blocchi, Cognitive Search li indicizza e la domanda dell'utente passa attraverso l'indice fino ad Azure OpenAI, che restituisce una risposta in linguaggio naturale tratta da quei documenti.
Accenti, dialetti e reti neurali
Nella sessione di domande, un partecipante chiede come l'AI vocale gestisca accenti diversi. Sherkhane spiega che Azure Speech dispone di parametri per accento e dialetto e che, per i parlanti non madrelingua, "Quindi dovreste sostanzialmente personalizzare il vostro modello, cosa che è, ehm, disponibile e si può fare." (17:27) Alla domanda se i modelli si basino su reti neurali, conferma che i modelli di deep learning lo sono e che, una volta convertito il parlato in testo, vengono eseguite ulteriori analisi.
Guardi il talk
"Azure Open AI Use cases" di Namrata Sherkhane, circa 20 minuti: https://www.womentech.net/video/azure-open-ai-use-cases
Informazioni sulla speaker
Namrata Sherkhane lavora come Senior Cloud Solution Architect presso Microsoft. Si occupa di supportare le aziende nella strategia dei dati e nelle soluzioni di AI.
Domande a cui risponde questo talk
In che cosa l'AI generativa differisce dal machine learning e dal deep learning precedenti?
Quali modelli offre Azure OpenAI Service?
Quali sono i casi d'uso aziendali più comuni per Azure OpenAI?
Come si costruisce un sistema di risposta alle domande sui documenti aziendali?
L'AI vocale riesce a gestire accenti diversi e parlanti non madrelingua?
Bozza redatta con l'AI dalla trascrizione del talk. In attesa di revisione editoriale.
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