Peb nrawm txhim kho siv Azure cov kev pabcuam: peb tsim chatbots thiab kev paub txog kev siv lub platform

Nyob zoo, Habr! Niaj hnub no peb yuav qhia koj yuav ua li cas siv Azure los daws cov teeb meem uas feem ntau xav tau kev cuam tshuam tib neeg. Cov neeg sawv cev siv sijhawm ntau los teb cov lus nug tib yam, tuav xov tooj thiab xa ntawv. Chatbots automate kev sib txuas lus thiab kev lees paub thiab txo lub nra ntawm tib neeg. Bots kuj tseem siv rau hauv Azure DevOps, qhov uas lawv tso cai, piv txwv li, pom zoo tso tawm, tswj kev tsim - saib, pib thiab nres - ncaj qha los ntawm Slack lossis Microsoft Teams. Hauv qhov tseem ceeb, chatbot yog qee qhov nco txog CLI, tsuas yog sib tham sib, thiab tso cai rau tus tsim tawm kom nyob twj ywm hauv cov ntsiab lus ntawm kev sib tham sib tham.

Hauv tsab xov xwm no, peb yuav tham txog cov cuab yeej tsim cov chatbots, qhia seb lawv tuaj yeem txhim kho li cas nrog cov kev pabcuam kev paub, thiab piav qhia yuav ua li cas txhawm rau txhim kho kev txhim kho nrog cov kev pabcuam npaj tiav hauv Azure.

Peb nrawm txhim kho siv Azure cov kev pabcuam: peb tsim chatbots thiab kev paub txog kev siv lub platform

Chatbots thiab kev txawj ntse: dab tsi yog qhov zoo sib xws thiab dab tsi yog qhov txawv?

Txhawm rau tsim bots hauv Microsoft Azure, koj siv Azure Bot Service thiab Bot Framework. Ua ke lawv sawv cev rau cov txheej txheem software rau kev tsim, sim, xa tawm thiab tswj hwm bots, uas tso cai rau koj los tsim los ntawm cov qauv npaj ua tiav ob qho tib si yooj yim thiab qib kev sib txuas lus nrog kev txhawb nqa kev hais lus, kev paub lus zoo thiab lwm yam peev xwm.

Cia peb xav tias koj yuav tsum tau siv lub bot yooj yim raws li kev koom tes Q&A cov kev pabcuam lossis, hloov pauv, tsim lub bot ua haujlwm nrog cov txheej txheem sib txuas lus nyuaj. Txhawm rau ua qhov no, koj tuaj yeem siv ntau cov cuab yeej, muab faib ua peb pawg: 

  1. Cov kev pabcuam rau kev txhim kho sai ntawm kev sib tham sib tham (bots).
  2. Npaj-ua kev paub txog AI cov kev pabcuam rau kev siv sib txawv (kev lees paub, kev paub txog kev hais lus, kev paub hauv paus thiab kev tshawb nrhiav).
  3. Kev pabcuam tsim thiab cob qhia AI qauv.

Feem ntau, tib neeg intuitively tsis meej pem "bots" thiab "kev paub kev paub" vim hais tias ob lub ntsiab lus yog raws li lub hauv paus ntsiab lus ntawm kev sib txuas lus, thiab cov ntaub ntawv siv rau bots thiab cov kev pab cuam cuam tshuam nrog kev sib tham. Tab sis chatbots ua haujlwm nrog cov lus tseem ceeb thiab qhov tshwm sim, thiab cov kev pabcuam kev txawj ntse ua haujlwm nrog kev thov tsis raug cai uas feem ntau ua tiav los ntawm tib neeg: 

Peb nrawm txhim kho siv Azure cov kev pabcuam: peb tsim chatbots thiab kev paub txog kev siv lub platform

Kev paub txog kev pabcuam yog lwm txoj hauv kev sib txuas lus nrog tus neeg siv, pab hloov qhov kev thov tsis ncaj ncees rau hauv cov lus qhia meej thiab dhau mus rau bot. 

Yog li, chatbots yog cov ntawv thov rau kev ua haujlwm nrog kev thov, thiab cov kev pabcuam kev paub yog cov cuab yeej rau kev soj ntsuam ntse ntawm kev thov uas tau pib sib cais, tab sis qhov twg chatbot tuaj yeem nkag mus, dhau los ua "ntse". 

Tsim chatbots

Daim duab pom zoo tsim rau bot hauv Azure yog raws li hauv qab no: 

Peb nrawm txhim kho siv Azure cov kev pabcuam: peb tsim chatbots thiab kev paub txog kev siv lub platform

Txhawm rau tsim thiab tsim bots hauv Azure, siv Bot Framework. Muaj nyob ntawm GitHub piv txwv ntawm bots, lub peev xwm ntawm lub moj khaum hloov pauv, yog li nws yog ib qho tsim nyog yuav tsum coj mus rau hauv tus account lub version ntawm SDK uas yog siv nyob rau hauv bots.

Lub moj khaum muab ntau txoj hauv kev los tsim bots: siv cov lej classic, cov cuab yeej kab lus lossis cov kab kos. Qhov kev xaiv kawg pom kev sib tham; rau qhov no koj tuaj yeem siv tus thawj tswj hwm Bot Framework Composer. Nws tau tsim los ntawm Bot Framework SDK raws li qhov pom kev txhim kho cov cuab yeej uas pab pawg neeg sib tw tuaj yeem siv los tsim bots.

Peb nrawm txhim kho siv Azure cov kev pabcuam: peb tsim chatbots thiab kev paub txog kev siv lub platform

Bot Framework Composer tso cai rau koj siv cov blocks los tsim cov qauv kev sib tham uas bot yuav ua haujlwm. Tsis tas li ntawd, koj tuaj yeem tsim cov txiaj ntsig, uas yog, cov lus tseem ceeb uas tus bot yuav hnov ​​​​mob thaum sib tham. Piv txwv li, lo lus "tus neeg ua haujlwm", "tub sab nyiag" lossis "nres" thiab "txaus".

Hauv Bot Framework Composer, koj tuaj yeem tsim cov kev sib tham nyuaj siv Adaptive Dialogs. Kev sib tham tuaj yeem siv ob qho kev pabcuam kev txawj ntse thiab kev tshwm sim phaib (Adaptive Cards):

Peb nrawm txhim kho siv Azure cov kev pabcuam: peb tsim chatbots thiab kev paub txog kev siv lub platform

Tom qab tsim, koj tuaj yeem xa cov chatbot hauv kev tso npe, thiab cov ntawv sau cia yuav tsim tag nrho cov peev txheej tsim nyog: kev paub txog kev pabcuam, Daim ntawv thov kev npaj, Daim Ntawv Thov Kev Pom Zoo, database, thiab lwm yam.

QnA Maker

Txhawm rau tsim cov bots yooj yim raws li cov tuam txhab Q&A databases, koj tuaj yeem siv QnA Maker kev paub txog kev pabcuam. Ua raws li lub vev xaib yooj yooj yim, nws tso cai rau koj nkag mus rau qhov txuas mus rau lub tuam txhab kev paub hauv paus (FAQ Urls) lossis siv cov ntaub ntawv khaws cia hauv *.doc lossis *.pdf hom ntawv ua lub hauv paus. Tom qab tsim qhov ntsuas, bot yuav cia li xaiv cov lus teb tsim nyog tshaj plaws rau cov neeg siv cov lus nug.

Siv QnAMaker, koj tuaj yeem tsim cov chains ntawm cov lus nug meej nrog kev tsim cov nyees khawm tsis siv neeg, ntxiv cov kev paub hauv paus nrog metadata, thiab cob qhia cov kev pabcuam ntxiv thaum siv.

Cov kev pabcuam tuaj yeem siv los ua chatbot uas tsuas yog siv qhov no nkaus xwb, lossis ua ib feem ntawm kev sib tham nyuaj uas siv, nyob ntawm qhov kev thov, lwm yam kev pabcuam AI lossis cov ntsiab lus ntawm Bot Framework.

Ua haujlwm nrog lwm cov kev pabcuam kev txawj ntse

Muaj ntau ntau yam kev txawj ntse sib txawv ntawm Azure platform. Technically, cov no yog cov kev pabcuam hauv web uas tuaj yeem hu tau los ntawm cov lej. Hauv kev teb, cov kev pabcuam xa json ntawm ib hom ntawv, uas tuaj yeem siv hauv chatbot.

Peb nrawm txhim kho siv Azure cov kev pabcuam: peb tsim chatbots thiab kev paub txog kev siv lub platform
Feem ntau siv chatbots yog:

  1. Cov ntawv lees paub.
  2. Kev lees paub ntawm cov neeg tsim khoom-txhais kev cai Vision Service pawg duab (cov ntaub ntawv tsim tawm: kev paub txog seb tus neeg ua haujlwm puas hnav lub kaus mom tawv, tsom iav lossis daim npog ntsej muag).
  3. Kev lees paub lub ntsej muag (cov ntaub ntawv siv tau zoo yog kuaj xyuas seb tus neeg raug soj ntsuam puas tau tso nws lub ntsej muag, lossis, hais tias, daim duab ntawm tus dev lossis daim duab ntawm tus neeg ntawm ib tug poj niam txiv neej sib txawv).
  4. Kev paub hais lus.
  5. Duab tsom xam.
  6. Kev txhais lus (peb txhua tus nco ntsoov ntau npaum li cas suab nrov ib txhij txhais hauv Skype tshwm sim).
  7. Spell check thiab cov lus qhia rau kev kho qhov yuam kev.

LUIS

Ntxiv thiab, los tsim bots koj yuav xav tau LUIS (Language Understanding Intelligent Service). Lub hom phiaj kev pabcuam:

  • Txiav txim siab seb tus neeg siv cov lus ua rau kev nkag siab thiab seb tus bot cov lus teb puas tsim nyog.
  • Txo kev siv zog los sau cov neeg siv hais lus (ntawv) rau hauv cov lus txib nkag siab rau bot.
  • Kwv yees tus neeg siv lub hom phiaj / lub hom phiaj tiag tiag thiab tshem tawm cov kev nkag siab tseem ceeb ntawm cov kab lus hauv kev sib tham.
  • Tso cai rau tus tsim tawm kom tso lub bot siv tsuas yog qee qhov piv txwv ntawm lub ntsiab lus lees paub thiab kev cob qhia ntxiv tom ntej ntawm bot thaum lub sijhawm ua haujlwm.
  • Pab kom tus tsim tawm siv qhov pom kev los soj ntsuam qhov zoo ntawm cov lus txib transcription.
  • Pab txhawb kev txhim kho hauv kev paub tseeb lub hom phiaj.

Qhov tseeb, lub hom phiaj tseem ceeb ntawm LUIS yog kom nkag siab nrog qee qhov tshwm sim uas tus neeg siv txhais tau li cas thiab hloov qhov kev thov ntuj rau hauv kev sib haum xeeb. Txhawm rau paub txog cov lus nug muaj txiaj ntsig, LUIS siv cov txheej txheem ntawm kev xav (lub ntsiab lus, kev xav) thiab cov koom haum (xws li kev teeb tsa ua ntej los ntawm cov neeg tsim khoom, lossis raug coj los ua ua ntej "domains" - qee cov tsev qiv ntawv npaj tau ntawm cov qauv kab lus npaj los ntawm Microsoft). 

Ib qho piv txwv yooj yim: koj muaj ib lub bot uas muab koj cov huab cua huab cua. Rau nws, lub hom phiaj yuav yog kev txhais lus ntawm kev thov ntuj rau hauv "kev nqis tes ua" - kev thov rau huab cua huab cua, thiab cov koom haum yuav yog lub sijhawm thiab qhov chaw. Ntawm no yog ib daim duab qhia txog tias CheckWeather lub hom phiaj ua haujlwm li cas rau tus bot.

Kev xav
Ntsiab lus
Piv txwv ntawm cov lus nug ntuj

CheckWeather
{"type": "location", "entity": "moscow"}
{"type": "builtin.datetimeV2.date", "entity": "future","resolution":"2020-05-30"}
Yuav ua li cas huab cua zoo li tag kis nyob rau hauv Moscow?

CheckWeather
{"type": "date_range", "entity": "no lis xaus" }
Qhia kuv qhov kev kwv yees rau hnub so no

Txhawm rau muab QnA Maker thiab LUIS koj tuaj yeem siv Kev rho tawm

Peb nrawm txhim kho siv Azure cov kev pabcuam: peb tsim chatbots thiab kev paub txog kev siv lub platform

Thaum koj ua haujlwm nrog QnA Maker thiab tau txais kev thov los ntawm tus neeg siv, lub kaw lus txiav txim siab seb feem pua ​​​​ntawm qhov yuav tshwm sim cov lus teb los ntawm QnA phim qhov kev thov. Yog tias qhov tshwm sim yog siab, tus neeg siv tsuas yog muab cov lus teb los ntawm kev paub txog kev lag luam; yog tias nws tsawg, qhov kev thov tuaj yeem xa mus rau LUIS kom paub meej. Siv Dispatcher tso cai rau koj kom tsis txhob teeb tsa lub logic no, tab sis kom txiav txim siab qhov ntug ntawm kev sib cais ntawm kev thov thiab xa sai sai.

Kev sim thiab tshaj tawm cov bot

Lwm daim ntawv thov hauv zos yog siv rau kev sim, Bot lub moj khaum emulator. Siv lub emulator, koj tuaj yeem sib txuas lus nrog bot thiab xyuas cov lus nws xa thiab tau txais. Lub emulator qhia cov lus raws li lawv yuav tshwm sim hauv lub vev xaib sib tham thiab sau JSON thov thiab cov lus teb thaum xa cov bot.

Ib qho piv txwv ntawm kev siv lub emulator yog nthuav tawm nyob rau hauv no demo, uas qhia tau hais tias tsim ib tug virtual pab rau BMW. Cov vis dis aus tseem tham txog cov accelerators tshiab rau kev tsim chatbots - cov qauv:

Peb nrawm txhim kho siv Azure cov kev pabcuam: peb tsim chatbots thiab kev paub txog kev siv lub platform
https://youtu.be/u7Gql-ClcVA?t=564

Koj tuaj yeem siv cov qauv thaum tsim koj cov chatbots. 
Cov qauv tso cai rau koj tsis txhob sau cov qauv bot ua haujlwm tshiab, tab sis ntxiv cov lej npaj ua "kev txawj ntse". Ib qho piv txwv tuaj yeem ua haujlwm nrog daim ntawv qhia hnub, teem caij, thiab lwm yam Code ntawm kev npaj ua tiav luam tawm ntawm github.

Qhov kev sim tau ua tiav, bot tau npaj txhij, thiab tam sim no nws yuav tsum tau tshaj tawm thiab cov kev sib txuas. Kev tshaj tawm yog nqa tawm siv Azure, thiab cov neeg xa xov lossis kev sib raug zoo tuaj yeem siv los ua cov channel. Yog tias koj tsis muaj cov channel uas yuav tsum tau nkag mus rau cov ntaub ntawv, koj tuaj yeem tshawb nrhiav nws hauv cov zej zog sib raug zoo ntawm GitHab. 

Tsis tas li ntawd, txhawm rau tsim kom muaj kev sib tham tag nrho ua ib qho kev sib txuas lus nrog cov neeg siv thiab cov kev pabcuam kev paub, koj yuav xav tau cov kev pabcuam Azure ntxiv, xws li databases, serverless (Azure Functions), nrog rau cov kev pabcuam LogicApp thiab, tej zaum. , Event Grid.

Peb nrawm txhim kho siv Azure cov kev pabcuam: peb tsim chatbots thiab kev paub txog kev siv lub platform

Kev ntsuas thiab ntsuas

Txhawm rau ntsuas cov neeg siv kev sib cuam tshuam, koj tuaj yeem siv ob qho tib si hauv kev tshuaj ntsuam xyuas ntawm Azure Bot Service thiab cov kev pabcuam tshwj xeeb Daim Ntawv Thov Kev Pom Zoo.

Yog li ntawd, koj tuaj yeem sau cov ntaub ntawv raws li cov hauv qab no:

  • Muaj pes tsawg tus neeg siv nkag mus rau bot los ntawm ntau cov channel thaum lub sijhawm xaiv.
  • Muaj pes tsawg tus neeg siv uas tau xa ib tsab xov rov qab tom qab thiab xa lwm tus.
  • Ntau npaum li cas tau xa thiab tau txais los ntawm kev siv txhua channel thaum lub sijhawm teev tseg.

Siv Daim Ntawv Thov Kev Pom Zoo, koj tuaj yeem saib xyuas txhua daim ntawv thov hauv Azure thiab, tshwj xeeb, chatbots, tau txais cov ntaub ntawv ntxiv txog tus neeg siv tus cwj pwm, thauj khoom thiab kev cuam tshuam chatbot. Nws yuav tsum raug sau tseg tias Application Insights kev pabcuam muaj nws tus kheej interface hauv Azure portal.

Koj tseem tuaj yeem siv cov ntaub ntawv sau los ntawm cov kev pabcuam no los tsim cov kev pom ntxiv thiab cov ntaub ntawv txheeb xyuas hauv PowerBI. Ib qho piv txwv ntawm xws li daim ntawv tshaj tawm thiab cov qauv rau PowerBI tuaj yeem coj no.

Peb nrawm txhim kho siv Azure cov kev pabcuam: peb tsim chatbots thiab kev paub txog kev siv lub platform

Ua tsaug rau koj mloog! Hauv kab lus no peb siv khoom los ntawm lub webinar los ntawm Microsoft Azure kws kes duab vajtse Anna Fenyushina "Thaum tib neeg tsis muaj sijhawm. Yuav ua li cas 100% siv chatbots thiab kev txawj ntse kev pab cuam automate cov txheej txheem niaj hnub ", qhov uas peb tau qhia meej tias cov chatbots nyob hauv Azure thiab dab tsi yog qhov xwm txheej rau lawv siv, thiab kuj tau qhia yuav ua li cas los tsim bot hauv QnA Maker hauv 15 feeb thiab yuav ua li cas Cov qauv lus nug yog deciphered hauv LUIS. 

Peb ua qhov webinar no ua ib feem ntawm online marathon rau developers Dev Bootcamp. Nws yog hais txog cov khoom lag luam uas txhawb kev txhim kho thiab txo qee qhov kev ua haujlwm niaj hnub los ntawm cov neeg ua haujlwm hauv tuam txhab siv cov cuab yeej automation thiab npaj ua ntej-configured Azure modules. Cov ntaub ntawv kaw tseg ntawm lwm qhov webinars suav nrog hauv marathon muaj nyob ntawm cov txuas hauv qab no:

Tau qhov twg los: www.hab.com

Ntxiv ib saib