SlideShare uma empresa Scribd logo
1 de 20
Baixar para ler offline
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

Mais conteúdo relacionado

Semelhante a Multiskill Conversational AI

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. ...Grid Dynamics
 
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 -...Grid Dynamics
 
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 -...Grid Dynamics
 
ICIC 2013 New Product Introductions CEPT
ICIC 2013 New Product Introductions CEPTICIC 2013 New Product Introductions CEPT
ICIC 2013 New Product Introductions CEPTDr. Haxel Consult
 
Nautral Langauge Processing - Basics / Non Technical
Nautral Langauge Processing - Basics / Non Technical Nautral Langauge Processing - Basics / Non Technical
Nautral Langauge Processing - Basics / Non Technical Dhruv Gohil
 
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 OfferingAmazon Web Services
 
AWS Artificial Intelligence Day - Toronto
AWS Artificial Intelligence Day - TorontoAWS Artificial Intelligence Day - Toronto
AWS Artificial Intelligence Day - TorontoAmazon Web Services
 
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 2014Paris Open Source Summit
 
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 chatbotsGrid Dynamics
 
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 builtNikhil Garg
 
Smart modeling of smart software
Smart modeling of smart softwareSmart modeling of smart software
Smart modeling of smart softwareJordi Cabot
 
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 2013Daniel Feist
 
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 CycleDatabricks
 
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 Andrés Leonardo Martinez Ortiz
 
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_2020Varun Manik
 
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.pdfCristina Vidu
 
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 TransformationRichard Esplin
 
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.pdfanimuscrm
 

Semelhante a 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
 
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
 
AWS Artificial Intelligence Day - Toronto
AWS Artificial Intelligence Day - TorontoAWS Artificial Intelligence Day - Toronto
AWS Artificial Intelligence Day - Toronto
 
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
 

Mais de Daniel Kornev

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.pdfDaniel Kornev
 
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.pdfDaniel Kornev
 
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 ManagementDaniel Kornev
 
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 DreamDaniel Kornev
 
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.pdfDaniel Kornev
 
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 eventDaniel Kornev
 
Functional Iliteracy
Functional IliteracyFunctional Iliteracy
Functional IliteracyDaniel Kornev
 
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?Daniel Kornev
 
Cortana - The Internals
Cortana - The InternalsCortana - The Internals
Cortana - The InternalsDaniel Kornev
 
Palantir, Quid, RecordedFuture: Augmented Intelligence Frontier
Palantir, Quid, RecordedFuture: Augmented Intelligence FrontierPalantir, Quid, RecordedFuture: Augmented Intelligence Frontier
Palantir, Quid, RecordedFuture: Augmented Intelligence FrontierDaniel Kornev
 
Augmented Intelligence 2.0
Augmented Intelligence 2.0Augmented Intelligence 2.0
Augmented Intelligence 2.0Daniel 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 ProgramDaniel Kornev
 
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 SystemDaniel 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 IDaniel 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 IIDaniel Kornev
 
Ubiquitous Computing
Ubiquitous ComputingUbiquitous Computing
Ubiquitous ComputingDaniel Kornev
 

Mais de 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
 

Último

React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Mater
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...OnePlan Solutions
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationBradBedford3
 
Sending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdfSending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdf31events.com
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Cizo Technology Services
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Developmentvyaparkranti
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odishasmiwainfosol
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Angel Borroy López
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...Technogeeks
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprisepreethippts
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 

Último (20)

React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
Advantages of Odoo ERP 17 for Your Business
Advantages of Odoo ERP 17 for Your BusinessAdvantages of Odoo ERP 17 for Your Business
Advantages of Odoo ERP 17 for Your Business
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion Application
 
Sending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdfSending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdf
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Development
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...
 
2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprise
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 

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