Генеративният AI може да отговаря на въпросите на служителите направо от вашите вътрешни правила
Един промпт връща слоган за сладолед, друг превръща обикновен въпрос за клиентите в Тексас на име Jane в SQL заявка. Компании във финансите, здравеопазването и образованието вече искат тази сила да работи върху собствените им записи на разговори, договори и вътрешни правила. Namrata Sherkhane, senior cloud solution architect в Microsoft, разглежда моделите, които вижда при клиентите, и оставя един въпрос: как изглежда архитектурата зад един полезен отговор?
Вижте три референтни архитектури в Azure за автоматизация на документи, анализ на разговори и корпоративни въпроси и отговори
Namrata Sherkhane, Senior Cloud Solution Architect в Microsoft, представя генеративния AI и семействата модели в Azure OpenAI Service (GPT, Codex и DALL-E). Тя разглежда корпоративните случаи на употреба, които среща най-често при клиентите, и очертава референтни архитектури за автоматизация на документи, анализ на контактни центрове и въпроси и отговори върху фирмени документи.
“Така че е особено като да говорите, ъъ, ами, с някого на естествен език и да получавате отговорите също на естествен език.”
“Така че всъщност сега превръщате един обикновен въпрос в код.”
What you will learn
Разграничете машинното обучение, дълбокото обучение и генеративния AI и какво прави всяко от тях.
Съпоставете семействата модели в Azure OpenAI (GPT-3.5, GPT-4 и ChatGPT, Codex, DALL-E) със задачи за текст, код и изображения.
Разпознайте честите корпоративни случаи на употреба като обобщаване, генериране на код, семантично търсене и автоматизация на процеси.
Скицирайте процес за въпроси и отговори върху документи, който комбинира Form Recognizer, Cognitive Search и Azure OpenAI.
Планирайте анализ на контактен център, който превръща разговорите в текст и ги обобщава с 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
С какво генеративният AI се различава от по-ранното машинно и дълбоко обучение?
Машинното обучение обучава машини върху набори от данни, а дълбокото обучение използва невронни мрежи за вземане на решения, докато генеративният AI създава нов текст и визуално съдържание и позволява разговор на естествен език.
Какви модели предоставя Azure OpenAI Service?
Той предлага предварително обучени базови модели: GPT-3.5, GPT-4 и ChatGPT за текст и разговор, Codex за код и DALL-E за изображения, които могат да се настройват със собствени данни.
Кои са най-честите корпоративни случаи на употреба на Azure OpenAI?
Генериране на съдържание, обобщаване на разговори и документи, генериране на код от естествен език, семантично търсене и автоматизация на бизнес процеси, често в комбинация с други Azure AI услуги.
Как се изгражда система за отговори на въпроси върху корпоративни документи?
Документите се обработват и разделят на части с Azure Form Recognizer, индексират се с Cognitive Search, а на въпроса на потребителя се отговаря от индекса чрез Azure OpenAI на естествен език.
Може ли речевият AI да се справя с различни акценти и говорители, за които езикът не е роден?
Azure Speech има параметри за акцент и диалект, а моделът може да се персонализира и обучи с нужния акцент.
Как работят въпросите и отговорите върху фирмени документи (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
Как компаниите използват Azure OpenAI върху собствените си данни
Архитектът от Microsoft Namrata Sherkhane свързва генеративните AI модели със случаите на употреба и референтните архитектури, които среща най-често при клиентите.
Накратко
Генеративният AI става полезен в една компания, когато моделите му са свързани със собствените ѝ документи, разговори и данни. Namrata Sherkhane, Senior Cloud Solution Architect в Microsoft, обяснява семействата модели в Azure OpenAI Service, корпоративните случаи на употреба, за които клиентите питат най-често, и три референтни архитектури, които комбинират Azure OpenAI с други Azure AI услуги.
Основни изводи
Разберете Azure OpenAI.
Научете основните случаи на употреба на OpenAI.
От машинно обучение до разговор на обикновен език
Sherkhane започва с кратка история. Изкуственият интелект започва като опит на компютърните науки да възпроизведе човешкия интелект. След това идва машинното обучение, при което машините се обучават върху набори от данни, а после и дълбокото обучение, което използва невронни мрежи за подпомагане на решенията. Днес, по думите ѝ, живеем в ерата на генеративния AI, който създава ново писмено и визуално съдържание и може да работи със съществуващи данни или с данни, които вие предоставите.
Разликата се усеща в интерфейса. „Така че е особено като да говорите, ъъ, ами, с някого на естествен език и да получавате отговорите също на естествен език.“ (1:00)
Тя обяснява, че много клиенти по света се обръщат към Microsoft с въпроса как да въведат възможностите на ChatGPT в бизнеса си. Големите езикови модели черпят от огромни масиви данни и от огромната изчислителна мощ, налична днес в облака, а Microsoft си партнира с OpenAI, за да помогне на клиентите да внедрят тези случаи на употреба в корпоративен мащаб.
Четири промпта, три семейства модели
За да покаже какво правят моделите, Sherkhane разглежда четири примера. Заявка за слоган на магазин за сладолед връща „we serve up the smiles with every scoop“. Разговор за неработещ Xbox връща стъпки за отстраняване на проблема, а след това и препоръки за игри за 14-годишно дете. Структура на таблица плюс заявка за всички клиенти в Тексас на име Jane връща SQL заявка. Промпт за огнено кълбо в ярки цветове, показващо скоростта на иновациите в медийна компания, връща изображение.
Най-дълго тя се спира на примера със SQL: „Така че всъщност сега превръщате един обикновен въпрос в код.“ (4:42) И добавя, че същото важи за езици като Java, C++ или Python.
Зад тези примери стоят моделите в Azure OpenAI Service: GPT-3.5 и GPT-4 за текст, ChatGPT за разговор, Codex за код и DALL-E за изображения. Това са големи предварително обучени базови модели, които могат да се настройват със собствени параметри и данни, а Azure OpenAI е част от Azure Cognitive Services, така че може да се комбинира с други услуги в едно корпоративно решение. Нейният съвет за екипите, които тепърва започват: „Така че не е нужно наистина да изграждате нищо, а можете направо да използвате тези модели за вашите случаи на употреба.“ (7:08)
Случаите на употреба, за които клиентите наистина питат
Sherkhane казва, че заявките идват от всички индустрии, от финансите и здравеопазването до образованието и IT. Най-честите модели, които изброява, са:
Генериране на съдържание, например автоматично изготвяне на отговори на запитвания на клиенти в кол центъра на банка или генериране на персонализирано съдържание за уебсайт.
Обобщаване на десетминутни телефонни разговори, истории на разговори, правни документи и договори, финансови отчети или тенденции в социалните мрежи.
Генериране на код с Codex: превръщане на естествен език в SQL за телеметрични данни, документиране и обобщаване на код и генериране на тестови сценарии.
Семантично търсене в продуктови ревюта, както и откриване на информация и извличане на знания от вътрешна документация.
Примерът с извличането на знания е този, който повечето организации ще разпознаят. „Може да има финансови правила. Може да има HR правила.“ (9:49) Служител пита колко дни отпуск има годишно, а системата търси в правилната политика за неговия регион и връща генериран отговор. Тя описва и решения с няколко модела, като цялостен анализ на кол център, който комбинира класификация, анализ на настроения, извличане на обекти, обобщаване и генериране на имейли, както и 360-градусов изглед на клиента, изграден върху хиперперсонализация и навременни обобщения на клиентските запитвания.
Три референтни архитектури
След това Sherkhane преминава от случаите на употреба към архитектурата. Първата е автоматизацията на процеси с документи. Представете си застраховател с щети по превозни средства, договори и снимки. Първата стъпка е обработката на документите, тоест извличането на информацията: „Може да е ръкописен документ. Може да имате изображения.“ (13:23) Azure Form Recognizer извлича обектите, Cognitive Search ги индексира, а Azure OpenAI генерира отговори в уеб приложение или подава анализи към отчети в Power BI.
Втората е анализът на контактни центрове. Записите на разговорите се съхраняват в Azure Storage, речта се превръща в текст, а Azure OpenAI обобщава какво е искал клиентът и извежда тенденции и прозрения.
Третата е система за въпроси и отговори с AI върху корпоративни източници на данни. Документи от HR, финанси, продажби и маркетинг се намират в библиотека с документи. Form Recognizer извлича написаното, документите се разделят на части, Cognitive Search ги индексира, а въпросът на потребителя преминава през индекса до Azure OpenAI, който връща отговор на естествен език, базиран на тези документи.
Акценти, диалекти и невронни мрежи
По време на въпросите участник пита как речевият AI се справя с различни акценти. Sherkhane обяснява, че Azure Speech има параметри за акцент и диалект, а за хора, за които езикът не е роден: „Така че по същество ще трябва да персонализирате модела си, което също, ъъ, е налично и може да се направи.“ (17:27) На въпроса дали моделите са базирани на невронни мрежи тя потвърждава, че моделите за дълбоко обучение са такива и че след превръщането на речта в текст върху него се извършва допълнителен анализ.
Гледайте лекцията
„Azure Open AI Use cases“ от Namrata Sherkhane, около 20 минути: https://www.womentech.net/video/azure-open-ai-use-cases
За лектора
Namrata Sherkhane работи като Senior Cloud Solution Architect в Microsoft. Тя се фокусира върху това да помага на компаниите със стратегия за данни и AI решения.
Въпроси, на които отговаря лекцията
С какво генеративният AI се различава от по-ранното машинно и дълбоко обучение?
Какви модели предоставя Azure OpenAI Service?
Кои са най-честите корпоративни случаи на употреба на Azure OpenAI?
Как се изгражда система за отговори на въпроси върху корпоративни документи?
Може ли речевият AI да се справя с различни акценти и говорители, за които езикът не е роден?
Изготвено с AI от транскрипцията на лекцията. Предстои редакторски преглед.
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