SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Downloaden Sie, um offline zu lesen
Multiskill
Conversational AI
Mikhail Burtsev, PhD, Founder
Daniel Kornev, CPO
DeepPavlov.ai
DeepPavlov.ai
Why Multiskill is
important?
▪ Customer experience spans
multiple domains
• Surveys
• Promotions
• Campaigns
• Customer Service
• Technical Support
• …
▪ Every domain requires specific
skill
© Copyright PresentationGO.com
Pre-Purchase
Post-Purchase
Surveys
Promotions
Campaigns
Customer Service
Technical Support
Product Usage
Billing & Payment
Account Management
Logistics
DeepPavlov.ai
AliMe Assist
e-commerce assistant
▪ 3 Services with different ML
engines
• Assistance Service:
Slot Filling Engine
• Customer Service:
Knowledge Graph Engine
• Chatting Service:
Chat Engine
Li, F. L., Qiu, M., Chen, H., Wang, X., Gao, X., Huang, J., ... & Jin, G. (2017, November). Alime assist: An intelligent assistant for creating an innovative e-commerce
experience. In Proceedings of the 2017 ACM on Conference on Information and Knowledge Management (pp. 2495-2498). ACM.
DeepPavlov.ai
XiaoIce
socialbot
▪ 660 million users worldwide
▪ 5 countries
• China
• Japan
• USA
• India
• Indonesia
▪ 40 platforms
▪ Average CPS of 23 (better than
human to human)
Zhou, L., Gao, J., Li, D., & Shum, H. Y. (2020). The design and implementation of xiaoice, an empathetic social chatbot. Computational Linguistics, 46(1), 53-93.
DeepPavlov.ai
Conversational AI
Stack
Multiskill
orchestration
Conversational
skills
NLP frameworks
ML platforms
▪ Multiskill orchestration
• An AI assistant should use many skills to solve
different tasks
• Long term interaction with a user
▪ Conversational skills
• Conversational skill helps user with a specific
task
• Interaction with a user is limited by one dialog
▪ NLP frameworks
• Helps system to understand and generate
natural language
• Only a current user’s utterance or short
history of the dialog is processed
▪ ML platforms
• ML models training
Proprietary Open Source
DeepPavlov.ai
action =
request_location
system action
What we have right
now
▪ Modular dialog systems
• NLU (Natural Language
Undestanding)
• Detects Domain, Intent, Slots
(entities)
• DM (Dialogue Manager)
• Updates dialog state
• Decides the next action (policy)
• NLG (Natural Language
Generation)
• Generates response in natural
language
NLU
(Natural Language
Understanding)
• Domain detection
• Intent detection
• Entities detection
DM
(Dialogue Manager)
• Dialogue state
• Script, ML Policy
intent = request_movie
entities =
{ genre = ‘comedy’,
date = ‘weekend ’ }
semantic frame
NLG
(Natural Language
Generation)
• Generative models
• Templates
Are there any
comedy
movies to see
this weekend?
Where are
you?
DeepPavlov.ai
AI Assistant
Lifecycle
▪ Business as usual
• Product growth requires more and
more domains
• More domains – adding more features
and scriptspolicies
• Complexity ceiling
▪ DeepPavlov Vision
• Every domain is covered by separate
conversational skill (modularity)
• Every skill is deployed as a
microservice (scalability)
• Old skills can be reusedextended in
new product (interoperability)
• Separate skills might be developed
and maintained by separate teams
AGENT
MVP PRODUCT GROWTH MATURE AI ASSISTANT
domain skill
DeepPavlov
Vision
As
Usual
DM
NLU
feature
script
feature
script
feature
DM
NLU
feature
script
feature
script
feature
DM
NLU
feature
script
feature
script
feature
DM
NLU
domain skill
domain skill
default skill
default skill
default skill
AGENT
domain skill
domain skill
domain skill
default skill
default skill
default skill
domain skill
domain skill
feature
feature
script
feature
script
feature
script
feature
feature
feature script
feature script
DeepPavlov.ai
Agent
Models
/
Components
DeepPavlov solution
Skill Skill Skill
Chit-Chat
Factoid
Task-Oriented
√
√
Named Entity Recognition
√
√
Coreference resolution
√
√
Intent recognition
√
√
Insults detection
√
Q&A
√
√
Dialogue Policy
√
√
Dialog history
√
√
√
Lanaguage model
…
reddit
SQuAD
DSTC-2
Dataset
▪ NLP pipelines
• DeepPavlov Library provides
pretrained models and simple
declarative approach to build NLP
processing pipelines
▪ Conversational Skills
• DeepPavlov Dream is a collection of
pre-build conversational skills and a
default distribution package for
Dream AI Assistant
▪ Multiskill Orchestration
• DeepPavlov Agent is an engine for
conversational skill deployment and
orchestration
DeepPavlov.ai
DREAM socialbot
architecture
1. Multiple Annotators are used to
extract information from the
user input.
2. Skill Selector defines a subset of
active Skills based on the
extracted information.
3. Selected Skills propose their
response candidates.
4. Finally, Response Selector picks
a response to be sent to
Response Annotators and,
eventually, to the user.
All elements of the pipeline are
running asynchronously with two
points of synchronization: Skill
Selector and Response Selector.
Dialogue State serves as a shared
memory.
DeepPavlov.ai
DREAM socialbot
infrastructure
1. The core of the DREAM socialbot is implemented with
DeepPavlov Agent (DP-Agent) framework. It
orchestrates services for Skills, Annotators, Skill
Selector and Response Selector, and is located on AWS
EC2 instances with Docker Swarm.
2. Dialogue State history is stored on a separate instance
with MongoDB.
3. AWS Lambda performs HTTP requests to the DREAM-
agent by sending ASR tokens.
4. Testing infrastructure consists of Telegram bots for
interacting with the dev version of the socialbot or with
selected conversational skill only.
5. Dialogue analytics tool and dashboard were located on a
separate EC2 instance.
6. Cluster and application monitoring had configured alerts
to email and Slack.
DeepPavlov.ai
DeepPavlov
Ecosystem
▪ Open repository of NLP models
and pipelines
• easy to find and reuse NLP
components for development of new
skills or extension of existing
▪ Open repository of conversational
skills
• alternative implementations of the
most popular skills
▪ Open hub for AI Assistant
distributions
• general and domainindustry
specific distributions of skill sets
DeepPavlov.ai
DeepPavlov on NGC
ngc.nvidia.com/catalog/containers/partners:deeppavlov
DeepPavlov.ai
Conversational AI
DeepPavlov Stack
Multiskill
orchestration
Conversa-
tionalskills
NLP
frameworks
ML platforms
Proprietary Open Source
▪ Multiskill orchestration
• DeepPavlov Agent is an engine for
conversational skill deployment and
orchestration
▪ Conversational skills
• DeepPavlov Dream is a collection of pre-
build conversational skills and a default
distribution package for Dream AI
Assistant
▪ NLP frameworks
• DeepPavlov Library provides pretrained
models and simple declarative approach
to build NLP processing pipelines
▪ ML platforms
• TensorFlow and PyTorch as backends
DeepPavlov.ai
HOW TO BUILD MULTISKILL
AI ASSISTANT WITH DEEPPAVLOV
LIVING IN PANDEMICS
MAKES US LONELY
Wouldn’t it be nice to have a friend to care about us?
DeepPavlov.ai
MEET GERTY 3000
Can help Sam with problems on
the Moon Base Sarang?
Can entertain Sam? Yes ✔
Yes ✔
Can we emulate it with
DeepPavlov DREAM?
Yes ✔
Main Question
Functionality Analysis
Case: Gerty
In the Moon Movie
DeepPavlov.ai
Text OR
Voice
Input
TTS
(NeMo)
Deepy:
Example Architecture
Spell
Checking
NeMo ASR Harvesters
Status
Chit-Chat
(AIML)
Emotion
BUILT-IN
SKILL
SELECTOR
RULE-BASED
RESPONSE
SELECTOR
DeepPavlov.ai
services:
agent:
[..]
depends_on:
- mongo
harvesters_maintenance_skill:
[..]
mongo:
[..]
rule_based_response_selector:
[..]
nemo:
[..]
depends_on:
- agent
emotion_classification:
[..]
program_y:
[..]
spell_checking:
[..]
Deepy:
Docker Pipeline
Spell Checking
Annotators
Emotion Classification
Harvesters Status Skill
Skills
Chit-Chat Skill
NeMo ASR & TTS
Other Services
Rule-Based Response Selector
DeepPavlov.ai
services:
agent:
[..]
depends_on:
- mongo
harvesters_maintenance_skill:
[..]
mongo:
[..]
rule_based_response_selector:
[..]
nemo:
[..]
depends_on:
- agent
emotion_classification:
[..]
program_y:
[..]
clone_tts:
[..]
Deepy:
Part of Agent Pipeline
Annotators
Services Are in Groups
Skills
Response Annotators
Depend on groups (e.g., “skills”)
Services Are Isolated
Limited in what they see in dialog
Invoke Agent’s State Manager
Can run via HTTP or be Python-based
"skills": {
"harvesters_maintenance_skill":
{
"connector": {
"protocol": "http",
"url": "http://harvester
s_maintenance_skill:3002/respond"
},
"dialog_formatter": "dp_form
atters:full_dialog",
"response_formatter": "dp_fo
rmatters:base_skill_formatter",
"state_manager_method": "add
_hypothesis",
"previous_services": ["annot
ators"]
},
Response Selectors
DeepPavlov.ai
Deepy:
Harvesters M. Skill
def detect_intent(utterance):
[..]
return intent
def generate_response_from_db(intent, utterance):
[..]
return response, confidence
@app.route("/respond", methods=["POST"])
def respond():
[..]
dialogs = request.json["dialogs"]
for dialog in dialogs:
sentence = dialog['human_utterances'][-1]
['annotations'].get("spelling_preprocessing")
[..]
intent = detect_intent(sentence)
[..]
response, confidence = generate_response_from_db
(intent, sentence)
[..]
return jsonify(list(zip(responses, confidences)))
What is (all) harvesters’ status?
Intents
What is harvester status?
Prepare rover for a trip
Extracts post-processed sentences
Dialog Processing
Looks up for intents
If found, runs, & generates response
Returns response + confidence
DeepPavlov.ai
Deepy:
Chit-Chat Skill (AIML)
<?xml version="1.0" encoding="UTF-8"?>
<aiml version="2.0">
<category>
<pattern>I AM ^ TIRED</pattern>
<template>
🙁
<random>
<li>Get some sleep<get name="name"/>.
You're very tired.</li>
<li>Have a rest and be happy! How can
I help you?</li>
</random>
</template>
</category>
[..]
</aiml>
</xml>
Assistant Profile (Name, Place, etc.)
Patterns
Greeting scenario
Topics
Looks up for patterns
Dialog Processing
Picks random pre-defined response
If not sure, confidence is low (0.2)
Returns response + confidence

Weitere ähnliche Inhalte

Ähnlich wie Multiskill Conversational AI

ICIC 2013 New Product Introductions CEPT
ICIC 2013 New Product Introductions CEPTICIC 2013 New Product Introductions CEPT
ICIC 2013 New Product Introductions CEPT
Dr. Haxel Consult
 
5 Keys to API Design - API Days Paris 2013
5 Keys to API Design - API Days Paris 20135 Keys to API Design - API Days Paris 2013
5 Keys to API Design - API Days Paris 2013
Daniel Feist
 
DEV Meet-Up Q2 2022 Amsterdam Slides.pdf
DEV Meet-Up Q2 2022 Amsterdam Slides.pdfDEV Meet-Up Q2 2022 Amsterdam Slides.pdf
DEV Meet-Up Q2 2022 Amsterdam Slides.pdf
Cristina Vidu
 

Ähnlich wie Multiskill Conversational AI (20)

Conversational commerce: emerging architectures for smart & useful chatbots. ...
Conversational commerce: emerging architectures for smart & useful chatbots. ...Conversational commerce: emerging architectures for smart & useful chatbots. ...
Conversational commerce: emerging architectures for smart & useful chatbots. ...
 
Conversational commerce: emerging architectures for smart & useful chatbots -...
Conversational commerce: emerging architectures for smart & useful chatbots -...Conversational commerce: emerging architectures for smart & useful chatbots -...
Conversational commerce: emerging architectures for smart & useful chatbots -...
 
Conversational commerce: emerging architectures for smart & useful chatbots -...
Conversational commerce: emerging architectures for smart & useful chatbots -...Conversational commerce: emerging architectures for smart & useful chatbots -...
Conversational commerce: emerging architectures for smart & useful chatbots -...
 
ICIC 2013 New Product Introductions CEPT
ICIC 2013 New Product Introductions CEPTICIC 2013 New Product Introductions CEPT
ICIC 2013 New Product Introductions CEPT
 
Nautral Langauge Processing - Basics / Non Technical
Nautral Langauge Processing - Basics / Non Technical Nautral Langauge Processing - Basics / Non Technical
Nautral Langauge Processing - Basics / Non Technical
 
AWS Artificial Intelligence Day - Toronto
AWS Artificial Intelligence Day - TorontoAWS Artificial Intelligence Day - Toronto
AWS Artificial Intelligence Day - Toronto
 
Amazon Web Services - Strategy and Current Offering
Amazon Web Services - Strategy and Current OfferingAmazon Web Services - Strategy and Current Offering
Amazon Web Services - Strategy and Current Offering
 
OWF14 - Big Data : The State of Machine Learning in 2014
OWF14 - Big Data : The State of Machine  Learning in 2014OWF14 - Big Data : The State of Machine  Learning in 2014
OWF14 - Big Data : The State of Machine Learning in 2014
 
Conversational commerce: emerging architectures for smart & useful chatbots
Conversational commerce: emerging architectures for smart & useful chatbotsConversational commerce: emerging architectures for smart & useful chatbots
Conversational commerce: emerging architectures for smart & useful chatbots
 
DeepPavlov 2019
DeepPavlov 2019DeepPavlov 2019
DeepPavlov 2019
 
Open source ml systems that need to be built
Open source ml systems that need to be builtOpen source ml systems that need to be built
Open source ml systems that need to be built
 
Smart modeling of smart software
Smart modeling of smart softwareSmart modeling of smart software
Smart modeling of smart software
 
5 Keys to API Design - API Days Paris 2013
5 Keys to API Design - API Days Paris 20135 Keys to API Design - API Days Paris 2013
5 Keys to API Design - API Days Paris 2013
 
MLflow: Infrastructure for a Complete Machine Learning Life Cycle
MLflow: Infrastructure for a Complete Machine Learning Life CycleMLflow: Infrastructure for a Complete Machine Learning Life Cycle
MLflow: Infrastructure for a Complete Machine Learning Life Cycle
 
Google Cloud: Data Analysis and Machine Learningn Technologies
Google Cloud: Data Analysis and Machine Learningn Technologies Google Cloud: Data Analysis and Machine Learningn Technologies
Google Cloud: Data Analysis and Machine Learningn Technologies
 
Canada DevOps Summit 2020 Presentation Nov_03_2020
Canada DevOps Summit 2020 Presentation Nov_03_2020Canada DevOps Summit 2020 Presentation Nov_03_2020
Canada DevOps Summit 2020 Presentation Nov_03_2020
 
Ai/ML services
Ai/ML servicesAi/ML services
Ai/ML services
 
DEV Meet-Up Q2 2022 Amsterdam Slides.pdf
DEV Meet-Up Q2 2022 Amsterdam Slides.pdfDEV Meet-Up Q2 2022 Amsterdam Slides.pdf
DEV Meet-Up Q2 2022 Amsterdam Slides.pdf
 
The Impact of Emerging Technology on Digital Transformation
The Impact of Emerging Technology on Digital TransformationThe Impact of Emerging Technology on Digital Transformation
The Impact of Emerging Technology on Digital Transformation
 
2022-December-In-person Meetup-BCN Admins Group.pdf
2022-December-In-person Meetup-BCN Admins Group.pdf2022-December-In-person Meetup-BCN Admins Group.pdf
2022-December-In-person Meetup-BCN Admins Group.pdf
 

Mehr von Daniel Kornev

Developer Relations, Google Russia - VC & Startups Outreach Program
Developer Relations, Google Russia - VC & Startups Outreach ProgramDeveloper Relations, Google Russia - VC & Startups Outreach Program
Developer Relations, Google Russia - VC & Startups Outreach Program
Daniel Kornev
 
Brave New World of Computer Science - Part I
Brave New World of Computer Science - Part IBrave New World of Computer Science - Part I
Brave New World of Computer Science - Part I
Daniel Kornev
 
Brave New World of Computer Science - Part II
Brave New World of Computer Science - Part IIBrave New World of Computer Science - Part II
Brave New World of Computer Science - Part II
Daniel Kornev
 

Mehr von Daniel Kornev (17)

Building AI Assistants with DeepPavlov - truly final.pdf
Building AI Assistants with DeepPavlov - truly final.pdfBuilding AI Assistants with DeepPavlov - truly final.pdf
Building AI Assistants with DeepPavlov - truly final.pdf
 
Multimodality at Dialogue 2022 by DeepPavlov.pdf
Multimodality at Dialogue 2022 by DeepPavlov.pdfMultimodality at Dialogue 2022 by DeepPavlov.pdf
Multimodality at Dialogue 2022 by DeepPavlov.pdf
 
Managing Dialog Strategy in Multiskill AI Assistant with Discourse Management
Managing Dialog Strategy in Multiskill AI Assistant with Discourse ManagementManaging Dialog Strategy in Multiskill AI Assistant with Discourse Management
Managing Dialog Strategy in Multiskill AI Assistant with Discourse Management
 
God Mode for designing scenario-driven skills for DeepPavlov Dream
God Mode for designing scenario-driven skills for DeepPavlov DreamGod Mode for designing scenario-driven skills for DeepPavlov Dream
God Mode for designing scenario-driven skills for DeepPavlov Dream
 
Managing Dialog Strategy In Multiskill AI Assistant.pdf
Managing Dialog Strategy In Multiskill AI Assistant.pdfManaging Dialog Strategy In Multiskill AI Assistant.pdf
Managing Dialog Strategy In Multiskill AI Assistant.pdf
 
Daniel Kornev's Slides for Working in Digital Media and Tech Services event
Daniel Kornev's Slides for Working in Digital Media and Tech Services eventDaniel Kornev's Slides for Working in Digital Media and Tech Services event
Daniel Kornev's Slides for Working in Digital Media and Tech Services event
 
Functional Iliteracy
Functional IliteracyFunctional Iliteracy
Functional Iliteracy
 
Digital Work Environments - History and What's Next after Siri and Cortana?
Digital Work Environments - History and What's Next after Siri and Cortana?Digital Work Environments - History and What's Next after Siri and Cortana?
Digital Work Environments - History and What's Next after Siri and Cortana?
 
Cortana - The Internals
Cortana - The InternalsCortana - The Internals
Cortana - The Internals
 
Palantir, Quid, RecordedFuture: Augmented Intelligence Frontier
Palantir, Quid, RecordedFuture: Augmented Intelligence FrontierPalantir, Quid, RecordedFuture: Augmented Intelligence Frontier
Palantir, Quid, RecordedFuture: Augmented Intelligence Frontier
 
Augmented Intelligence 2.0
Augmented Intelligence 2.0Augmented Intelligence 2.0
Augmented Intelligence 2.0
 
Developer Relations, Google Russia - VC & Startups Outreach Program
Developer Relations, Google Russia - VC & Startups Outreach ProgramDeveloper Relations, Google Russia - VC & Startups Outreach Program
Developer Relations, Google Russia - VC & Startups Outreach Program
 
Project Universe – Context-aware Project Management System
Project Universe – Context-aware Project Management SystemProject Universe – Context-aware Project Management System
Project Universe – Context-aware Project Management System
 
Brave New World of Computer Science - Part I
Brave New World of Computer Science - Part IBrave New World of Computer Science - Part I
Brave New World of Computer Science - Part I
 
Brave New World of Computer Science - Part II
Brave New World of Computer Science - Part IIBrave New World of Computer Science - Part II
Brave New World of Computer Science - Part II
 
Context In UX
Context In UXContext In UX
Context In UX
 
Ubiquitous Computing
Ubiquitous ComputingUbiquitous Computing
Ubiquitous Computing
 

Kürzlich hochgeladen

CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
anilsa9823
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 

Kürzlich hochgeladen (20)

Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 

Multiskill Conversational AI

  • 1. Multiskill Conversational AI Mikhail Burtsev, PhD, Founder Daniel Kornev, CPO DeepPavlov.ai
  • 2. DeepPavlov.ai Why Multiskill is important? ▪ Customer experience spans multiple domains • Surveys • Promotions • Campaigns • Customer Service • Technical Support • … ▪ Every domain requires specific skill © Copyright PresentationGO.com Pre-Purchase Post-Purchase Surveys Promotions Campaigns Customer Service Technical Support Product Usage Billing & Payment Account Management Logistics
  • 3. DeepPavlov.ai AliMe Assist e-commerce assistant ▪ 3 Services with different ML engines • Assistance Service: Slot Filling Engine • Customer Service: Knowledge Graph Engine • Chatting Service: Chat Engine Li, F. L., Qiu, M., Chen, H., Wang, X., Gao, X., Huang, J., ... & Jin, G. (2017, November). Alime assist: An intelligent assistant for creating an innovative e-commerce experience. In Proceedings of the 2017 ACM on Conference on Information and Knowledge Management (pp. 2495-2498). ACM.
  • 4. DeepPavlov.ai XiaoIce socialbot ▪ 660 million users worldwide ▪ 5 countries • China • Japan • USA • India • Indonesia ▪ 40 platforms ▪ Average CPS of 23 (better than human to human) Zhou, L., Gao, J., Li, D., & Shum, H. Y. (2020). The design and implementation of xiaoice, an empathetic social chatbot. Computational Linguistics, 46(1), 53-93.
  • 5. DeepPavlov.ai Conversational AI Stack Multiskill orchestration Conversational skills NLP frameworks ML platforms ▪ Multiskill orchestration • An AI assistant should use many skills to solve different tasks • Long term interaction with a user ▪ Conversational skills • Conversational skill helps user with a specific task • Interaction with a user is limited by one dialog ▪ NLP frameworks • Helps system to understand and generate natural language • Only a current user’s utterance or short history of the dialog is processed ▪ ML platforms • ML models training Proprietary Open Source
  • 6. DeepPavlov.ai action = request_location system action What we have right now ▪ Modular dialog systems • NLU (Natural Language Undestanding) • Detects Domain, Intent, Slots (entities) • DM (Dialogue Manager) • Updates dialog state • Decides the next action (policy) • NLG (Natural Language Generation) • Generates response in natural language NLU (Natural Language Understanding) • Domain detection • Intent detection • Entities detection DM (Dialogue Manager) • Dialogue state • Script, ML Policy intent = request_movie entities = { genre = ‘comedy’, date = ‘weekend ’ } semantic frame NLG (Natural Language Generation) • Generative models • Templates Are there any comedy movies to see this weekend? Where are you?
  • 7. DeepPavlov.ai AI Assistant Lifecycle ▪ Business as usual • Product growth requires more and more domains • More domains – adding more features and scriptspolicies • Complexity ceiling ▪ DeepPavlov Vision • Every domain is covered by separate conversational skill (modularity) • Every skill is deployed as a microservice (scalability) • Old skills can be reusedextended in new product (interoperability) • Separate skills might be developed and maintained by separate teams AGENT MVP PRODUCT GROWTH MATURE AI ASSISTANT domain skill DeepPavlov Vision As Usual DM NLU feature script feature script feature DM NLU feature script feature script feature DM NLU feature script feature script feature DM NLU domain skill domain skill default skill default skill default skill AGENT domain skill domain skill domain skill default skill default skill default skill domain skill domain skill feature feature script feature script feature script feature feature feature script feature script
  • 8. DeepPavlov.ai Agent Models / Components DeepPavlov solution Skill Skill Skill Chit-Chat Factoid Task-Oriented √ √ Named Entity Recognition √ √ Coreference resolution √ √ Intent recognition √ √ Insults detection √ Q&A √ √ Dialogue Policy √ √ Dialog history √ √ √ Lanaguage model … reddit SQuAD DSTC-2 Dataset ▪ NLP pipelines • DeepPavlov Library provides pretrained models and simple declarative approach to build NLP processing pipelines ▪ Conversational Skills • DeepPavlov Dream is a collection of pre-build conversational skills and a default distribution package for Dream AI Assistant ▪ Multiskill Orchestration • DeepPavlov Agent is an engine for conversational skill deployment and orchestration
  • 9. DeepPavlov.ai DREAM socialbot architecture 1. Multiple Annotators are used to extract information from the user input. 2. Skill Selector defines a subset of active Skills based on the extracted information. 3. Selected Skills propose their response candidates. 4. Finally, Response Selector picks a response to be sent to Response Annotators and, eventually, to the user. All elements of the pipeline are running asynchronously with two points of synchronization: Skill Selector and Response Selector. Dialogue State serves as a shared memory.
  • 10. DeepPavlov.ai DREAM socialbot infrastructure 1. The core of the DREAM socialbot is implemented with DeepPavlov Agent (DP-Agent) framework. It orchestrates services for Skills, Annotators, Skill Selector and Response Selector, and is located on AWS EC2 instances with Docker Swarm. 2. Dialogue State history is stored on a separate instance with MongoDB. 3. AWS Lambda performs HTTP requests to the DREAM- agent by sending ASR tokens. 4. Testing infrastructure consists of Telegram bots for interacting with the dev version of the socialbot or with selected conversational skill only. 5. Dialogue analytics tool and dashboard were located on a separate EC2 instance. 6. Cluster and application monitoring had configured alerts to email and Slack.
  • 11. DeepPavlov.ai DeepPavlov Ecosystem ▪ Open repository of NLP models and pipelines • easy to find and reuse NLP components for development of new skills or extension of existing ▪ Open repository of conversational skills • alternative implementations of the most popular skills ▪ Open hub for AI Assistant distributions • general and domainindustry specific distributions of skill sets
  • 13. DeepPavlov.ai Conversational AI DeepPavlov Stack Multiskill orchestration Conversa- tionalskills NLP frameworks ML platforms Proprietary Open Source ▪ Multiskill orchestration • DeepPavlov Agent is an engine for conversational skill deployment and orchestration ▪ Conversational skills • DeepPavlov Dream is a collection of pre- build conversational skills and a default distribution package for Dream AI Assistant ▪ NLP frameworks • DeepPavlov Library provides pretrained models and simple declarative approach to build NLP processing pipelines ▪ ML platforms • TensorFlow and PyTorch as backends
  • 14. DeepPavlov.ai HOW TO BUILD MULTISKILL AI ASSISTANT WITH DEEPPAVLOV LIVING IN PANDEMICS MAKES US LONELY Wouldn’t it be nice to have a friend to care about us?
  • 15. DeepPavlov.ai MEET GERTY 3000 Can help Sam with problems on the Moon Base Sarang? Can entertain Sam? Yes ✔ Yes ✔ Can we emulate it with DeepPavlov DREAM? Yes ✔ Main Question Functionality Analysis Case: Gerty In the Moon Movie
  • 16. DeepPavlov.ai Text OR Voice Input TTS (NeMo) Deepy: Example Architecture Spell Checking NeMo ASR Harvesters Status Chit-Chat (AIML) Emotion BUILT-IN SKILL SELECTOR RULE-BASED RESPONSE SELECTOR
  • 17. DeepPavlov.ai services: agent: [..] depends_on: - mongo harvesters_maintenance_skill: [..] mongo: [..] rule_based_response_selector: [..] nemo: [..] depends_on: - agent emotion_classification: [..] program_y: [..] spell_checking: [..] Deepy: Docker Pipeline Spell Checking Annotators Emotion Classification Harvesters Status Skill Skills Chit-Chat Skill NeMo ASR & TTS Other Services Rule-Based Response Selector
  • 18. DeepPavlov.ai services: agent: [..] depends_on: - mongo harvesters_maintenance_skill: [..] mongo: [..] rule_based_response_selector: [..] nemo: [..] depends_on: - agent emotion_classification: [..] program_y: [..] clone_tts: [..] Deepy: Part of Agent Pipeline Annotators Services Are in Groups Skills Response Annotators Depend on groups (e.g., “skills”) Services Are Isolated Limited in what they see in dialog Invoke Agent’s State Manager Can run via HTTP or be Python-based "skills": { "harvesters_maintenance_skill": { "connector": { "protocol": "http", "url": "http://harvester s_maintenance_skill:3002/respond" }, "dialog_formatter": "dp_form atters:full_dialog", "response_formatter": "dp_fo rmatters:base_skill_formatter", "state_manager_method": "add _hypothesis", "previous_services": ["annot ators"] }, Response Selectors
  • 19. DeepPavlov.ai Deepy: Harvesters M. Skill def detect_intent(utterance): [..] return intent def generate_response_from_db(intent, utterance): [..] return response, confidence @app.route("/respond", methods=["POST"]) def respond(): [..] dialogs = request.json["dialogs"] for dialog in dialogs: sentence = dialog['human_utterances'][-1] ['annotations'].get("spelling_preprocessing") [..] intent = detect_intent(sentence) [..] response, confidence = generate_response_from_db (intent, sentence) [..] return jsonify(list(zip(responses, confidences))) What is (all) harvesters’ status? Intents What is harvester status? Prepare rover for a trip Extracts post-processed sentences Dialog Processing Looks up for intents If found, runs, & generates response Returns response + confidence
  • 20. DeepPavlov.ai Deepy: Chit-Chat Skill (AIML) <?xml version="1.0" encoding="UTF-8"?> <aiml version="2.0"> <category> <pattern>I AM ^ TIRED</pattern> <template> 🙁 <random> <li>Get some sleep<get name="name"/>. You're very tired.</li> <li>Have a rest and be happy! How can I help you?</li> </random> </template> </category> [..] </aiml> </xml> Assistant Profile (Name, Place, etc.) Patterns Greeting scenario Topics Looks up for patterns Dialog Processing Picks random pre-defined response If not sure, confidence is low (0.2) Returns response + confidence