SlideShare a Scribd company logo
Building an enterprise Natural Language Search
Engine with ElasticSearch and Facebook’s DrQA
Louis Baligand, Debmalya Biswas
Berlin Buzzwords, 17 June 2019
Enterprise Architecture
PMI INFORMATION SERVICES 2016
About
2
https://github.com/philipmorrisintl
Debmalya Biswas
Louis Baligand
“Forrester defines cognitive search and knowledge discovery solutions as
A new generation of enterprise search solutions that employ AI
technologies such as natural language processing and machine learning
to ingest, understand, organize, and query digital content from multiple
data sources.
3
““ The average interaction worker spends
[...] nearly 20 percent (of the workweek)
looking for internal information.”
-MGI Report, 2012.
4
Half (54%) of global information workers said, "My work
gets interrupted because I can't find or get access to
information I need to complete my tasks" a few times a
month or more often. -Forrester Data Global Business
Technographics Devices And Security Workforce Survey, 2016.
PMI INFORMATION SERVICES 2016
Enterprise Search vs. Web Search
6
Enterprise Search Web Searchvs.
Multiple content types
Limited tagging/metadata management
Role-based content trimming
Small amount of content
Single source (web pages)
Large investments in SEO (*)
(*): Search Engine Optimization
No visibility restrictions (public pages)
Enormous amount of content
No team in charge of Search Experience Search xxperience as core business
Employees are the end-users WWW users
PMI INFORMATION SERVICES 2016
Natural Language Search (NLS)
7
Knowledge Graph
PMI INFORMATION SERVICES 2016
Chatbots and Natural Language Search
Natural Language Search
(Neural Networks)
 Works on documents.
 Users can ask any question
from the documents.
 Both the documents and
questions are passed through
the same Neural Network,
producing the matching
answer.
Intent based Chatbots
(Statistical Methods)
 Requires Q&A knowledge.
 Able to scale with respect to
question variants by
applying Statististical
Clustering Methods, e.g. tf-
idf, Bag-of-Words - to
cluster question variants
into ‘intents’.
(Rules based) FAQs
.
 Works only for specific
hardcoded questions.
 The only way to scale with
respect to question
variants, is to extend the
knowledgebase by
manually adding variants of
a question.
“How do I replace the heating
component of my iQoS?”
=
“Tell me how to change the
heating component of my iQoS”
<Q>
how replace
heating
component
iQoS
<Q>
how change
heating
component
iQoS
Same Intent
#repairIQOS
Document
data base
Neural
Network
<Q>
Neural
Network
(Offline)
(Real-time)
<A>
PMI INFORMATION SERVICES 2016
Chatbots and Natural Language Search (2)
3- tier strategy:
 A Chatbot with its pre-
defined Q&A set remains the
entry point – think of it as
the 1st line of defense.
 If the bot encounters a user
query which cannot be
mapped to one of its pre-
configured intents, it
performs a NLS over its KB.
This is the 2nd line of
defense.
 If the user is not satisfied
even with search results, plan
for a final handover to a live
agent.
Ref: “Chatbots & Natural Language Search: 2 sides of
the same coin?” (link)
PMI INFORMATION SERVICES 2016
• End-user searching for
products (not answer)
• Filter-Oriented
• Rates, Review
10
Positioning vs e-commerce search
PMI INFORMATION SERVICES 2016
Philip Morris’ Use
case: Operator
Trainings
• Hundreds to thousands of operators
• Long manuals with specific terminology
• A 1min downtime of a machine would
lead to 20,000 cigarettes unmade
• Typical Full text Search (Boolean search,
no relevancy score)
• Document Management System
Manually classified
• On-boarding difficulty
11
PMI INFORMATION SERVICES 2016
Example of fine-grained results
12
Q. How many knives are there on the drums?
PMI INFORMATION SERVICES 2016
Question Answering?
• Squad Dataset: a reference in
Question Answering
• 100,000+ Q&A on Wikipedia
articles
• State of the art is beating
Human Performance
14
PMI INFORMATION SERVICES 2016
DrQA Overview
• Facebook AI Research, ACL
2017, Reading Wikipedia to
answer Open-Domain
Questions.
• Open source, BSD License
https://github.com/facebookr
esearch/DrQA
• Pre-trained model available
15
https://github.com/facebookresearch/DrQA
PMI INFORMATION SERVICES 2016
DrQA Overview
16
Bigram
TFIDF
Bi-direct.
RNN
PMI INFORMATION SERVICES 2016
DrQA is easy to use on your own corpus!
17
$ pythonbuild_db.py /path/to/data /path/to/saved/db.db
$ pythonbuild_tfidf.py /path/to/doc/db /path/to/output/dir
0.06 0.02
0.03 0.08
Terms
Docs
$ pythoninteractive.py –reader-modelmultitask.mdl –retriever-modelpath/to/tfidf –doc-db path/to/saved/db.db
>>>process('Whatis theanswertolife,the universe,andeverything?’)
Top Predictions:
+------+--------+---------------------------------------------------+--------------+-----------+
| Rank| Answer| Doc | AnswerScore|DocScore|
+------+--------+---------------------------------------------------+--------------+-----------+
| 1 | 42 | PhrasesfromThe Hitchhiker'sGuide tothe Galaxy | 47242 | 141.26 |
+------+--------+---------------------------------------------------+--------------+-----------+
Pre-trained model open sourced
PMI INFORMATION SERVICES 2016
DrQA to answer Operator’s questions?
18
• Java toolkit to extract text + metadata from DOCX, PPT, XLS, PDF, JPEG, etc…
• Apache Software Foundation
• OCR
PMI INFORMATION SERVICES 2016
DrQA to answer Operator’s questions?
19
https://github.com/facebookresearch/DrQA
P@5: 76%
• Not a voice assistant
• End user needs at least ~95%
• Full control on the retriever
• First stage to prioritize
PMI INFORMATION SERVICES 2016
Introducing Elasticsearch
• Open source distributed
• Highly scalable
• RESTful API on top of Lucene capabilities
• Support for Full Text search (best of bread)
• Easy to configure + extend
• Seamlessly manage conflicts
• Active community & popular
21
PMI INFORMATION SERVICES 2016
Integrating Elasticsearch to DrQA’s pipeline
22
Index
PMI INFORMATION SERVICES 2016
Integrating Elasticsearch to DrQA’s pipeline
23
>>>fromdrqa.pipeline importDrQA
>>>fromdrqa.retrieverimportElasticDocRanker
>>>model= DrQA(reader_model=‘reader_model.mdl’,
ranker_config={'class':ElasticDocRanker,
'options':{'elastic_url':'127.0.0.1:9200’,
'elastic_index':'mini’, 'elastic_fields':'content’,
'elastic_field_doc_name':['file','filename’],
'elastic_field_content': 'content’}})
>>>model.process(’Howthe tensioningoftheV-belts shouldbe done?’)
Directly point to your server hosting Elastic Enable to search in any fields, e.g. uni-grams, bi-
grams, title, metadata, etc…
PMI INFORMATION SERVICES 2016
The pipeline performance
24
P@5: 76% 84%
P@5 ref.: 78%
(DrQA)
F1 score: 42%
F1 score ref.: 79%
(DrQA)
• DrQA span +- 10 tokens: 94% of 1st result contains true answer
PMI INFORMATION SERVICES 2016
Take aways
 Address pain points by combining
Document Retrieval with Question
Answering
 If not answered, it will provide much
more granular insights of the data
 User elicitation & user experience: a
top down approach
 End user does not know what to ask
25
PMI INFORMATION SERVICES 2016
Future work – Extend pipeline with BERT*
 A general-purpose architecture to train models for multiple NLP tasks (sentiment analysis, etc…)
 State of the art for SQuAD
 Open source, published in Oct. 2018 by Google AI Research
 High memory required: GPU with at least 12GB of RAM (Base model)
 Enable to multi-language queries
26
*https://arxiv.org/abs/1810.04805, https://github.com/google-research/bert
• Add one layer to compute Pstart(“token”) & Pend(“token”) for each tokens
• Find the best pair by maximizing Pstart(“token1”) * Pend(“token2”)
Thank you.

More Related Content

PPTX
Compositional AI: Fusion of AI/ML Services
PPTX
Fractional Chief AI Officer Services For Hire
PPTX
Syngenta's Predictive Analytics Platform for Seeds R&D
PPTX
Ethical AI - Open Compliance Summit 2020
PDF
Architecting AI Applications
PDF
Deep Learning for Recommender Systems with Nick pentreath
PDF
Machine Learning Applied - Contextual Chatbots Coding, Oracle JET and TensorFlow
PPTX
Digital transformation and AI @Edge
Compositional AI: Fusion of AI/ML Services
Fractional Chief AI Officer Services For Hire
Syngenta's Predictive Analytics Platform for Seeds R&D
Ethical AI - Open Compliance Summit 2020
Architecting AI Applications
Deep Learning for Recommender Systems with Nick pentreath
Machine Learning Applied - Contextual Chatbots Coding, Oracle JET and TensorFlow
Digital transformation and AI @Edge

What's hot (18)

PPTX
State of the State: What’s Happening in the Database Market?
PDF
Vijayananda Mohire-dissertation-abstract
PPTX
Cognos Data Module Architectures & Use Cases
PDF
Applications and approaches_to_object_or
PDF
Driven by data - Why we need a Modern Enterprise Data Analytics Platform
PDF
On24 oracle-machine-learning-platform-12-feb-2020-webcast
PDF
Phoenix Data Conference - Big Data Analytics for IoT 11/4/17
PPTX
Hadoop Integration with Microstrategy
PDF
The Evolution of Metadata: LinkedIn's Story [Strata NYC 2019]
PPTX
How data modelling helps serve billions of queries in millisecond latency wit...
PDF
"Data Annotation at Scale: Pitfalls and Solutions," a Presentation from Intel
PDF
Delivering Large Scale Real-time Graph Analytics with Dell Infrastructure and...
PDF
Strata 2017 (San Jose): Building a healthy data ecosystem around Kafka and Ha...
PDF
SqlSaturday#699 Power BI - Create a dashboard from zero to hero
PDF
Citizen Data Science Training using KNIME
PDF
The "Big Data" Ecosystem at LinkedIn
PPTX
Data science with python certification training course with
PPTX
Predictive maintenance withsensors_in_utilities_
State of the State: What’s Happening in the Database Market?
Vijayananda Mohire-dissertation-abstract
Cognos Data Module Architectures & Use Cases
Applications and approaches_to_object_or
Driven by data - Why we need a Modern Enterprise Data Analytics Platform
On24 oracle-machine-learning-platform-12-feb-2020-webcast
Phoenix Data Conference - Big Data Analytics for IoT 11/4/17
Hadoop Integration with Microstrategy
The Evolution of Metadata: LinkedIn's Story [Strata NYC 2019]
How data modelling helps serve billions of queries in millisecond latency wit...
"Data Annotation at Scale: Pitfalls and Solutions," a Presentation from Intel
Delivering Large Scale Real-time Graph Analytics with Dell Infrastructure and...
Strata 2017 (San Jose): Building a healthy data ecosystem around Kafka and Ha...
SqlSaturday#699 Power BI - Create a dashboard from zero to hero
Citizen Data Science Training using KNIME
The "Big Data" Ecosystem at LinkedIn
Data science with python certification training course with
Predictive maintenance withsensors_in_utilities_
Ad

Similar to Building an enterprise Natural Language Search Engine with ElasticSearch and Facebook’s DrQA (20)

PPTX
KDD 2019 IADSS Workshop - Research Updates from Usama Fayyad & Hamit Hamutcu
PPTX
Big Data Driven Solutions to Combat Covid' 19
PDF
Denodo Platform 7.0: What's New?
PDF
Webinar: NoSQL as the New Normal
PDF
Building a healthy data ecosystem around Kafka and Hadoop: Lessons learned at...
PDF
Pinterest - Big Data Machine Learning Platform at Pinterest
PDF
3 Reasons Data Virtualization Matters in Your Portfolio
PDF
Big Data Analytics Lecture notes pdf notes
PPTX
Webinar: Scaling MongoDB
PDF
(R17A0528) BIG DATA ANALYTICS.pdf
PDF
(R17A0528) BIG DATA ANALYTICS.pdf
PDF
High-performance database technology for rock-solid IoT solutions
PPT
MongoDB Tick Data Presentation
PDF
Secrets of Enterprise Data Mining: SQL Saturday Oregon 201411
PDF
Analytical Innovation: How to Build the Next Generation Data Platform
PDF
Webinar: Faster Big Data Analytics with MongoDB
PDF
Big Data Evolution
PDF
Marvin Platform – Potencializando equipes de Machine Learning
PDF
Pratical Deep Dive into the Semantic Web - #smconnect
KDD 2019 IADSS Workshop - Research Updates from Usama Fayyad & Hamit Hamutcu
Big Data Driven Solutions to Combat Covid' 19
Denodo Platform 7.0: What's New?
Webinar: NoSQL as the New Normal
Building a healthy data ecosystem around Kafka and Hadoop: Lessons learned at...
Pinterest - Big Data Machine Learning Platform at Pinterest
3 Reasons Data Virtualization Matters in Your Portfolio
Big Data Analytics Lecture notes pdf notes
Webinar: Scaling MongoDB
(R17A0528) BIG DATA ANALYTICS.pdf
(R17A0528) BIG DATA ANALYTICS.pdf
High-performance database technology for rock-solid IoT solutions
MongoDB Tick Data Presentation
Secrets of Enterprise Data Mining: SQL Saturday Oregon 201411
Analytical Innovation: How to Build the Next Generation Data Platform
Webinar: Faster Big Data Analytics with MongoDB
Big Data Evolution
Marvin Platform – Potencializando equipes de Machine Learning
Pratical Deep Dive into the Semantic Web - #smconnect
Ad

More from Debmalya Biswas (20)

PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
PDF
ICAART 2025 presentation on Stateful Monitoring and Responsible Deployment of...
PDF
Agentic AI: Scalable & Responsible Deployment of AI Agents in the Enterprise
PDF
A comprehensive guide to Agentic AI Systems
PDF
Responsible LLMOps presentation at Webit 2024
PPTX
AI Agents and their implications for Enterprise AI Use-cases
PPTX
Gen AI: Privacy Risks of Large Language Models (LLMs)
PPTX
Constraints Enabled Autonomous Agent Marketplace: Discovery and Matchmaking
PDF
Responsible Generative AI Design Patterns
PDF
Sustainable & Composable Generative AI
PPTX
Data-Driven (Reinforcement Learning-Based) Control
PPTX
Regulating Generative AI - LLMOps pipelines with Transparency
PPTX
MLOps for Compositional AI
PPTX
A Privacy Framework for Hierarchical Federated Learning
PPTX
Edge AI Framework for Healthcare Applications
PPTX
Privacy Preserving Chatbot Conversations
PPTX
Reinforcement Learning based HVAC Optimization in Factories
PPTX
Delayed Rewards in the context of Reinforcement Learning based Recommender ...
PDF
Privacy-Preserving Outsourced Profiling
PDF
Privacy Policies Change Management for Smartphones
Agentic AI lifecycle for Enterprise Hyper-Automation
ICAART 2025 presentation on Stateful Monitoring and Responsible Deployment of...
Agentic AI: Scalable & Responsible Deployment of AI Agents in the Enterprise
A comprehensive guide to Agentic AI Systems
Responsible LLMOps presentation at Webit 2024
AI Agents and their implications for Enterprise AI Use-cases
Gen AI: Privacy Risks of Large Language Models (LLMs)
Constraints Enabled Autonomous Agent Marketplace: Discovery and Matchmaking
Responsible Generative AI Design Patterns
Sustainable & Composable Generative AI
Data-Driven (Reinforcement Learning-Based) Control
Regulating Generative AI - LLMOps pipelines with Transparency
MLOps for Compositional AI
A Privacy Framework for Hierarchical Federated Learning
Edge AI Framework for Healthcare Applications
Privacy Preserving Chatbot Conversations
Reinforcement Learning based HVAC Optimization in Factories
Delayed Rewards in the context of Reinforcement Learning based Recommender ...
Privacy-Preserving Outsourced Profiling
Privacy Policies Change Management for Smartphones

Recently uploaded (20)

PDF
Digital Strategies for Manufacturing Companies
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
history of c programming in notes for students .pptx
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
Introduction to Artificial Intelligence
PPTX
Online Work Permit System for Fast Permit Processing
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
top salesforce developer skills in 2025.pdf
PPTX
CHAPTER 2 - PM Management and IT Context
Digital Strategies for Manufacturing Companies
Design an Analysis of Algorithms I-SECS-1021-03
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Navsoft: AI-Powered Business Solutions & Custom Software Development
history of c programming in notes for students .pptx
Which alternative to Crystal Reports is best for small or large businesses.pdf
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Upgrade and Innovation Strategies for SAP ERP Customers
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
How to Migrate SBCGlobal Email to Yahoo Easily
Introduction to Artificial Intelligence
Online Work Permit System for Fast Permit Processing
How Creative Agencies Leverage Project Management Software.pdf
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
2025 Textile ERP Trends: SAP, Odoo & Oracle
top salesforce developer skills in 2025.pdf
CHAPTER 2 - PM Management and IT Context

Building an enterprise Natural Language Search Engine with ElasticSearch and Facebook’s DrQA

  • 1. Building an enterprise Natural Language Search Engine with ElasticSearch and Facebook’s DrQA Louis Baligand, Debmalya Biswas Berlin Buzzwords, 17 June 2019 Enterprise Architecture
  • 2. PMI INFORMATION SERVICES 2016 About 2 https://github.com/philipmorrisintl Debmalya Biswas Louis Baligand
  • 3. “Forrester defines cognitive search and knowledge discovery solutions as A new generation of enterprise search solutions that employ AI technologies such as natural language processing and machine learning to ingest, understand, organize, and query digital content from multiple data sources. 3
  • 4. ““ The average interaction worker spends [...] nearly 20 percent (of the workweek) looking for internal information.” -MGI Report, 2012. 4 Half (54%) of global information workers said, "My work gets interrupted because I can't find or get access to information I need to complete my tasks" a few times a month or more often. -Forrester Data Global Business Technographics Devices And Security Workforce Survey, 2016.
  • 5. PMI INFORMATION SERVICES 2016 Enterprise Search vs. Web Search 6 Enterprise Search Web Searchvs. Multiple content types Limited tagging/metadata management Role-based content trimming Small amount of content Single source (web pages) Large investments in SEO (*) (*): Search Engine Optimization No visibility restrictions (public pages) Enormous amount of content No team in charge of Search Experience Search xxperience as core business Employees are the end-users WWW users
  • 6. PMI INFORMATION SERVICES 2016 Natural Language Search (NLS) 7 Knowledge Graph
  • 7. PMI INFORMATION SERVICES 2016 Chatbots and Natural Language Search Natural Language Search (Neural Networks)  Works on documents.  Users can ask any question from the documents.  Both the documents and questions are passed through the same Neural Network, producing the matching answer. Intent based Chatbots (Statistical Methods)  Requires Q&A knowledge.  Able to scale with respect to question variants by applying Statististical Clustering Methods, e.g. tf- idf, Bag-of-Words - to cluster question variants into ‘intents’. (Rules based) FAQs .  Works only for specific hardcoded questions.  The only way to scale with respect to question variants, is to extend the knowledgebase by manually adding variants of a question. “How do I replace the heating component of my iQoS?” = “Tell me how to change the heating component of my iQoS” <Q> how replace heating component iQoS <Q> how change heating component iQoS Same Intent #repairIQOS Document data base Neural Network <Q> Neural Network (Offline) (Real-time) <A>
  • 8. PMI INFORMATION SERVICES 2016 Chatbots and Natural Language Search (2) 3- tier strategy:  A Chatbot with its pre- defined Q&A set remains the entry point – think of it as the 1st line of defense.  If the bot encounters a user query which cannot be mapped to one of its pre- configured intents, it performs a NLS over its KB. This is the 2nd line of defense.  If the user is not satisfied even with search results, plan for a final handover to a live agent. Ref: “Chatbots & Natural Language Search: 2 sides of the same coin?” (link)
  • 9. PMI INFORMATION SERVICES 2016 • End-user searching for products (not answer) • Filter-Oriented • Rates, Review 10 Positioning vs e-commerce search
  • 10. PMI INFORMATION SERVICES 2016 Philip Morris’ Use case: Operator Trainings • Hundreds to thousands of operators • Long manuals with specific terminology • A 1min downtime of a machine would lead to 20,000 cigarettes unmade • Typical Full text Search (Boolean search, no relevancy score) • Document Management System Manually classified • On-boarding difficulty 11
  • 11. PMI INFORMATION SERVICES 2016 Example of fine-grained results 12 Q. How many knives are there on the drums?
  • 12. PMI INFORMATION SERVICES 2016 Question Answering? • Squad Dataset: a reference in Question Answering • 100,000+ Q&A on Wikipedia articles • State of the art is beating Human Performance 14
  • 13. PMI INFORMATION SERVICES 2016 DrQA Overview • Facebook AI Research, ACL 2017, Reading Wikipedia to answer Open-Domain Questions. • Open source, BSD License https://github.com/facebookr esearch/DrQA • Pre-trained model available 15 https://github.com/facebookresearch/DrQA
  • 14. PMI INFORMATION SERVICES 2016 DrQA Overview 16 Bigram TFIDF Bi-direct. RNN
  • 15. PMI INFORMATION SERVICES 2016 DrQA is easy to use on your own corpus! 17 $ pythonbuild_db.py /path/to/data /path/to/saved/db.db $ pythonbuild_tfidf.py /path/to/doc/db /path/to/output/dir 0.06 0.02 0.03 0.08 Terms Docs $ pythoninteractive.py –reader-modelmultitask.mdl –retriever-modelpath/to/tfidf –doc-db path/to/saved/db.db >>>process('Whatis theanswertolife,the universe,andeverything?’) Top Predictions: +------+--------+---------------------------------------------------+--------------+-----------+ | Rank| Answer| Doc | AnswerScore|DocScore| +------+--------+---------------------------------------------------+--------------+-----------+ | 1 | 42 | PhrasesfromThe Hitchhiker'sGuide tothe Galaxy | 47242 | 141.26 | +------+--------+---------------------------------------------------+--------------+-----------+ Pre-trained model open sourced
  • 16. PMI INFORMATION SERVICES 2016 DrQA to answer Operator’s questions? 18 • Java toolkit to extract text + metadata from DOCX, PPT, XLS, PDF, JPEG, etc… • Apache Software Foundation • OCR
  • 17. PMI INFORMATION SERVICES 2016 DrQA to answer Operator’s questions? 19 https://github.com/facebookresearch/DrQA P@5: 76% • Not a voice assistant • End user needs at least ~95% • Full control on the retriever • First stage to prioritize
  • 18. PMI INFORMATION SERVICES 2016 Introducing Elasticsearch • Open source distributed • Highly scalable • RESTful API on top of Lucene capabilities • Support for Full Text search (best of bread) • Easy to configure + extend • Seamlessly manage conflicts • Active community & popular 21
  • 19. PMI INFORMATION SERVICES 2016 Integrating Elasticsearch to DrQA’s pipeline 22 Index
  • 20. PMI INFORMATION SERVICES 2016 Integrating Elasticsearch to DrQA’s pipeline 23 >>>fromdrqa.pipeline importDrQA >>>fromdrqa.retrieverimportElasticDocRanker >>>model= DrQA(reader_model=‘reader_model.mdl’, ranker_config={'class':ElasticDocRanker, 'options':{'elastic_url':'127.0.0.1:9200’, 'elastic_index':'mini’, 'elastic_fields':'content’, 'elastic_field_doc_name':['file','filename’], 'elastic_field_content': 'content’}}) >>>model.process(’Howthe tensioningoftheV-belts shouldbe done?’) Directly point to your server hosting Elastic Enable to search in any fields, e.g. uni-grams, bi- grams, title, metadata, etc…
  • 21. PMI INFORMATION SERVICES 2016 The pipeline performance 24 P@5: 76% 84% P@5 ref.: 78% (DrQA) F1 score: 42% F1 score ref.: 79% (DrQA) • DrQA span +- 10 tokens: 94% of 1st result contains true answer
  • 22. PMI INFORMATION SERVICES 2016 Take aways  Address pain points by combining Document Retrieval with Question Answering  If not answered, it will provide much more granular insights of the data  User elicitation & user experience: a top down approach  End user does not know what to ask 25
  • 23. PMI INFORMATION SERVICES 2016 Future work – Extend pipeline with BERT*  A general-purpose architecture to train models for multiple NLP tasks (sentiment analysis, etc…)  State of the art for SQuAD  Open source, published in Oct. 2018 by Google AI Research  High memory required: GPU with at least 12GB of RAM (Base model)  Enable to multi-language queries 26 *https://arxiv.org/abs/1810.04805, https://github.com/google-research/bert • Add one layer to compute Pstart(“token”) & Pend(“token”) for each tokens • Find the best pair by maximizing Pstart(“token1”) * Pend(“token2”)

Editor's Notes

  • #3: This includes PMI taking part in the open source community. Check out our github to see the highly popular repos we have contributed to.
  • #4: According to a report from McKinsey, workers spend 20% percent of their time looking for internal information ...
  • #5: According to a report from McKinsey, workers spend 20% percent of their time looking for internal information ...
  • #7: Content The amount of content stored in PMI is ridiculously small compared to what Google crawls everyday. It should therefore be an advantage for PMI Enterprise Search. Traffic While from an infrastructure side, handling more traffic is more challenging, it actually offers more possibilities to capture data related to search queries that can be further used to train machine-learning algorithms to optimize the search experience (e.g. suggest / auto-complete queries and boost related most relevant pages). Google holds a huge advantage on that front. Content Sources At PMI, content is fragmented and stored in many locations. This creates difficulties to implement content crawlers that expose content in different ways (APIs, flat files + DB for meta-data etc.). On the Google side, only one type of content is actually crawled: Web pages (including all attached images etc.). Scale is larger but the variety smaller. Information Management At PMI, there are currently no strong practices around information architecture and management. Therefore, all types of information are mixed, irrespective of their business value for PMI, and relevance for the users. On the Google side, companies invest large amounts of resources into SEO and gain proper visibility in search results Security In an enterprise, access to documents / information are controlled to ensure compliance and protection of sensitive data. This poses a challenge when crawling sources which use ACLs to control access, since those ACLs must be imported to filter out search results that some users should not see. Google only works with public content, which completely removes that constraint. Search Experience Google’s core business relies on effective search and targeted advertisements. They hire the best engineers to work on AI to constantly adjust the quality of the search results. At PMI, there is no such team (even small scale) that is tasked to monitor and continuously improve search relevance. Also, from a skill perspective, it is unrealistic to think it is possible to get even close to Google.