SlideShare ist ein Scribd-Unternehmen logo
1 von 38
Building Intelligent Apps with
MongoDB and Google Cloud
Jane Fine
Director of Product Marketing, Analytics
jane.fine@mongodb.com
@janeuyvova
Analytics is a Constant Underachiever
2000
Business Intelligence
Data Warehouse, OLAP, Ad-
hoc, Reporting, Dashboards
Big Data
Hadoop, MapReduce,
Predictive, ML, Real-time
2010
AI
Intelligent Things, IoT,
Systems of Engagement
2018
“In 2018, 75% of AI projects will underwhelm because they fail to model operational
considerations, causing business leaders to reset the scope of AI investments.”
FORRESTER.COM/PREDICTIONS
$40B+ eCommerce platform
experience of millions of mobile
gamers
metadata for every single item
for sale on eBay.com
world’s leading design
collaboration platform
20M+ users
$150B+ traded
reinvent travel for millions of
customers
lab and clinical analysis for
innovative medicines
personal and business finance
management worldwide
Applications Change Our World
Operational
AI
ML
Modern Applications
shop for
products
online
Intelligent App
get personalized
product
recommendations
shop over
messaging
app on
mobile device
ML
What’s an Intelligent App?
Applications are combining real-time analytics, machine learning and AI to better
understand the customer, automate tasks, and provide knowledge and decision
support
Why Is This Hard?
Intelligent App
Developers
Data
Scientists
RELEASE DEFINE
BUILD
AGILE
DAT
A
PREP
BUILD
MODEL
GET
INSIGHT
VIZ
DEPLOY
TRAIN/EVAL
Data
Engineers
S
E
R
V
E
A
C
Q
U
I
R
E
M
O
N
I
T
O
R
S
C
A
L
E
P
R
E
P
A
R
E
eCommerce App: SwagStore
eCommerce App: SwagStore
Get restocking
notifications
Browse for your favorite
MongoDB swag
Put items in cart and
checkout
View your orders
DEMO: SwagStore
Stitch: MongoDB Serverless Platform
Streamlines app development
with simple, secure access to data and
services
thousands of lines less code to write and no
infrastructure to manage
Gets your apps to market
faster and reduces
operational costs
SwagStore: How We Built It
UI components
Routes
Application Flow Control
Google Authentication
Twilio Notifications
Functions
Rules
Triggers
Service Integrations
Flexible Document Model
Easy to Work With Data
SwagStore + RecEngine
Intelligent eCommerce App: SwagStore +
Receive personalized
product
recommendations based
on ML algorithm
Recommendation
Engine
DEMO:
SwagStore + RecEngine
Intelligent SwagStore: How We Built It
SwagStore
Google Cloud ML
trains and tunes model using
TensorFlow WALS Algorithm
Google Cloud Endpoints
serve recommendations
Stitch initiates
recommendations
developer data scientist developer
data engineer
Production Recommendations on GCP
Google Analytics
BigQuery
Intelligent Web
Application
Rec API
App Engine
Cloud
Endpoints
Model Training
Cloud Machine Learning
Orchestration
Cloud Composer
ML Data
Training
Model files
Browser
Client
Mobile Client
The Recommendation API
Google Analytics
BigQuery
Rec API
App Engine
Cloud
Endpoints
Model Training
Cloud Machine Learning
ML Data
Training
Model files
UserID
User factor x
Item factors
Item ID &
User ID
Maps
Sort & Filter
Item
Index
List
Item ID &
User ID
Maps
Item ID
List
ML Model
Training Recommendation Model
1. install the model code
2. place data into your Cloud Storage Bucket
3. run training script
./mltrain.sh train gs://recserve_jfmlrecengine/swag_pageviews.csv
--data-type web_views
4. trained model data
(numpy arrays) is saved
back into Cloud Storage
Bucket
Tuning Recommendation Model
Hyperparameter tuning optimizes your machine learning model for
most accuracy - “the art of data science”
1. hyperparameters passed to the tuning job on
Cloud ML Engine
2. model writes a TensorFlow summary with the
metric that evaluates the quality of the model
3. summary metric enables the search process of the
Cloud ML Engine hyperparameter tuning service to
rank the trials
./mltrain.sh tune
gs://recserve_jfmlrecengine/swag_pageviews.csv -
-data-type web_views
AI does AI
Systematic exploration
of the model space, using
the techniques finessed in
AlphaGo, yields super-human
performance in AI network design
The X axis is model size. The Y axis is accuracy
Generate Recommendations
model.py : generate_recommendations - input
user: row index of the user in the rating matrix
items: list of indexes for items that the user has viewed
latent factors: row and column factors generated by training the model
number of desired recommendations
https://jfmlrecengine.appspot.com/recommendation
?userId=5448543647176335931&numRecs=6
{"items":
["299824032"
,"299935287"
,"299865757"
,"299959410"
,"298157062"
,"299816215"
]}
Serving Recommendations with Stitch
MongoDB Stitch send a HTTP GET
request to Google Cloud Endpoint
to obtain recommendations
For user who is logged in
Get list of product
recommendations
Update user profile with that
list
Service Integrations make it
simple for your app to use any
third party service
Functions:
build complex logic
orchestrate data between clients and services
scale to meet usage
SwagStore + ChatBot
Intelligent eCommerce App: SwagStore +
Shop for products via
chat interface
AI Chatbot
DEMO:
SwagStore + ChatBot
Intelligent SwagStore: How We Built It
SwagStore
Google DialogFlow:
Intent, Entities, Webhooks
Stitch - Intent Fulfilment Slack - Front End
developer
data scientist
developer
data engineer
DialogFlow + Stitch Architecture
Stitch HTTP
Service
Webhook
Stitch Functions to
retrieve products
from MongoDB
Me: “Can you help me find a jacket ?”
ChatBot: “What color would you like?”
Me: “White”
ChatBot: “I found you a
white Egmont Jacket”
Rich and Natural Conversations
Stitch Service Integrations
Enabling DialogFlow Fulfillment With Stitch
Stitch security enabled by default
Enabling DialogFlow Fulfillment With Stitch
perform $find given
parameters requested by
DialogFlow: product
type and product color
return item from SwagStore
Catalog to DialogFlow
{
"fulfillmentText": "I found you
a white Egmont Packable Jacket.
Check it out here: https://mdb-
swag-
store.netlify.com/products/299824
032"
}
Intelligent SwagStore
developer data scientist data engineer
Working Together
Developers Data
Scientists
RELEASE DEFINE
BUILD
AGILE
DATA
PREP
BUILD
MODEL
GET
INSIGHT
VIZ
DEPLOY
TRAIN/EVAL
Data
Engineers
S
E
R
V
E
A
C
Q
U
I
R
E
M
O
N
I
T
O
R
S
C
A
L
E
P
R
E
P
A
R
E
Build. Plug In. Innovate.
Intelligent App
Resources and Credits
Aydrian Howard, Jesse Krasnostein, Mike Lynn, Drew DiPalma, Avery Rosen, Shawn McCarthy, Seong Park
Lukman Ramsey & Asher Halpert
MongoDB Stitch: https://www.mongodb.com/cloud/stitch
Google Cloud ML:
https://cloud.google.com/solutions/machine-learning/recommendation-system-tensorflow-train-cloud-ml-engine
https://github.com/GoogleCloudPlatform/tensorflow-recommendation-wals
DialogFlow: https://dialogflow.com/docs/getting-started
Thank You!
MongoDB.local Sydney 2019: Building Intelligent Apps with MongoDB & Google Cloud
MongoDB.local Sydney 2019: Building Intelligent Apps with MongoDB & Google Cloud

Weitere ähnliche Inhalte

Was ist angesagt?

Bi Fast Track Overview
Bi Fast Track OverviewBi Fast Track Overview
Bi Fast Track Overview
B.I. Voyage
 

Was ist angesagt? (18)

Azure ML Studio
Azure ML StudioAzure ML Studio
Azure ML Studio
 
Dynamics 365 and Power Platform icons
Dynamics 365 and Power Platform iconsDynamics 365 and Power Platform icons
Dynamics 365 and Power Platform icons
 
Power platform power automate in a day
Power platform   power automate in a dayPower platform   power automate in a day
Power platform power automate in a day
 
How to Build a Virtual Agent for Your Business
How to Build a Virtual Agent for Your BusinessHow to Build a Virtual Agent for Your Business
How to Build a Virtual Agent for Your Business
 
Bi Fast Track Overview
Bi Fast Track OverviewBi Fast Track Overview
Bi Fast Track Overview
 
Data Analytics for Mobile App Development
Data Analytics for Mobile App DevelopmentData Analytics for Mobile App Development
Data Analytics for Mobile App Development
 
How to use machine learning - Benchmark by EBG Berlin 2019
How to use machine learning - Benchmark by EBG Berlin 2019How to use machine learning - Benchmark by EBG Berlin 2019
How to use machine learning - Benchmark by EBG Berlin 2019
 
Microsoft BI Cool Data Visualizations
Microsoft BI Cool Data VisualizationsMicrosoft BI Cool Data Visualizations
Microsoft BI Cool Data Visualizations
 
Connected Field Service and Resource Scheduling Optimization
Connected Field Service and Resource Scheduling OptimizationConnected Field Service and Resource Scheduling Optimization
Connected Field Service and Resource Scheduling Optimization
 
Bringing Artificial intelligence (AI) to Business Users With Microsoft Power ...
Bringing Artificial intelligence (AI) to Business Users With Microsoft Power ...Bringing Artificial intelligence (AI) to Business Users With Microsoft Power ...
Bringing Artificial intelligence (AI) to Business Users With Microsoft Power ...
 
Microsoft Azure Power BI
Microsoft Azure Power BIMicrosoft Azure Power BI
Microsoft Azure Power BI
 
Financial Services in 2030: How will Big Data Deliver on Big Promises?
Financial Services in 2030:  How will Big Data Deliver on Big Promises?Financial Services in 2030:  How will Big Data Deliver on Big Promises?
Financial Services in 2030: How will Big Data Deliver on Big Promises?
 
Getting Started with Azure AutoML
Getting Started with Azure AutoMLGetting Started with Azure AutoML
Getting Started with Azure AutoML
 
Develop intelligent apps for the modern workplace
Develop intelligent apps for the modern workplaceDevelop intelligent apps for the modern workplace
Develop intelligent apps for the modern workplace
 
AI Builder with Power Platform
AI Builder with Power PlatformAI Builder with Power Platform
AI Builder with Power Platform
 
Improve your Dynamics 365 usage with AI
Improve your Dynamics 365 usage with AIImprove your Dynamics 365 usage with AI
Improve your Dynamics 365 usage with AI
 
Data science for gas stations
Data science for gas stationsData science for gas stations
Data science for gas stations
 
Achieving Massive Concurrency & Sub-second Query Latency on Cloud Warehouses ...
Achieving Massive Concurrency & Sub-second Query Latency on Cloud Warehouses ...Achieving Massive Concurrency & Sub-second Query Latency on Cloud Warehouses ...
Achieving Massive Concurrency & Sub-second Query Latency on Cloud Warehouses ...
 

Ähnlich wie MongoDB.local Sydney 2019: Building Intelligent Apps with MongoDB & Google Cloud

Ähnlich wie MongoDB.local Sydney 2019: Building Intelligent Apps with MongoDB & Google Cloud (20)

MongoDB World 2018: Building Intelligent Apps with MongoDB & Google Cloud
MongoDB World 2018: Building Intelligent Apps with MongoDB & Google CloudMongoDB World 2018: Building Intelligent Apps with MongoDB & Google Cloud
MongoDB World 2018: Building Intelligent Apps with MongoDB & Google Cloud
 
Accelerate ML Deployment with H2O Driverless AI on AWS
Accelerate ML Deployment with H2O Driverless AI on AWSAccelerate ML Deployment with H2O Driverless AI on AWS
Accelerate ML Deployment with H2O Driverless AI on AWS
 
Democratizing AI/ML with GCP - Abishay Rao (Google) at GoDataFest 2019
Democratizing AI/ML with GCP - Abishay Rao (Google) at GoDataFest 2019Democratizing AI/ML with GCP - Abishay Rao (Google) at GoDataFest 2019
Democratizing AI/ML with GCP - Abishay Rao (Google) at GoDataFest 2019
 
Reading the IBM AI Strategy for Business
Reading the IBM AI Strategy for BusinessReading the IBM AI Strategy for Business
Reading the IBM AI Strategy for Business
 
Advanced Analytics and Artificial Intelligence - Transforming Your Business T...
Advanced Analytics and Artificial Intelligence - Transforming Your Business T...Advanced Analytics and Artificial Intelligence - Transforming Your Business T...
Advanced Analytics and Artificial Intelligence - Transforming Your Business T...
 
Applying BigQuery ML on e-commerce data analytics
Applying BigQuery ML on e-commerce data analyticsApplying BigQuery ML on e-commerce data analytics
Applying BigQuery ML on e-commerce data analytics
 
Modern Thinking área digital MSKM 21/09/2017
Modern Thinking área digital MSKM 21/09/2017Modern Thinking área digital MSKM 21/09/2017
Modern Thinking área digital MSKM 21/09/2017
 
Overview on Azure Machine Learning
Overview on Azure Machine LearningOverview on Azure Machine Learning
Overview on Azure Machine Learning
 
D365 Demonstration CRM G Aspiotis
D365 Demonstration CRM G AspiotisD365 Demonstration CRM G Aspiotis
D365 Demonstration CRM G Aspiotis
 
300 - Multiplatform Apps on Google Cloud Platform
300 - Multiplatform Apps on Google Cloud Platform300 - Multiplatform Apps on Google Cloud Platform
300 - Multiplatform Apps on Google Cloud Platform
 
[第43回 Machine Learning 15minutes! × 2] Azure AI Updates
[第43回 Machine Learning 15minutes! × 2] Azure AI Updates[第43回 Machine Learning 15minutes! × 2] Azure AI Updates
[第43回 Machine Learning 15minutes! × 2] Azure AI Updates
 
[Giovanni Galloro] How to use machine learning on Google Cloud Platform
[Giovanni Galloro] How to use machine learning on Google Cloud Platform[Giovanni Galloro] How to use machine learning on Google Cloud Platform
[Giovanni Galloro] How to use machine learning on Google Cloud Platform
 
D365 power platform-user-group-deck-v02
D365 power platform-user-group-deck-v02D365 power platform-user-group-deck-v02
D365 power platform-user-group-deck-v02
 
Empowering you - Power BI, Power Platform & AI Builder
Empowering you  -  Power BI, Power Platform & AI BuilderEmpowering you  -  Power BI, Power Platform & AI Builder
Empowering you - Power BI, Power Platform & AI Builder
 
unit_5.pdf
unit_5.pdfunit_5.pdf
unit_5.pdf
 
Entrepreneurship Tips With HTML5 & App Engine Startup Weekend (June 2012)
Entrepreneurship Tips With HTML5 & App Engine Startup Weekend (June 2012)Entrepreneurship Tips With HTML5 & App Engine Startup Weekend (June 2012)
Entrepreneurship Tips With HTML5 & App Engine Startup Weekend (June 2012)
 
Meetup Toulouse Microsoft Azure : Bâtir une solution IoT
Meetup Toulouse Microsoft Azure : Bâtir une solution IoTMeetup Toulouse Microsoft Azure : Bâtir une solution IoT
Meetup Toulouse Microsoft Azure : Bâtir une solution IoT
 
How to leverage artificial intelligence in power apps with ai builder
How to leverage artificial intelligence in power apps with ai builder How to leverage artificial intelligence in power apps with ai builder
How to leverage artificial intelligence in power apps with ai builder
 
BigQuery ML - Machine learning at scale using SQL
BigQuery ML - Machine learning at scale using SQLBigQuery ML - Machine learning at scale using SQL
BigQuery ML - Machine learning at scale using SQL
 
AI Overview and Capabilities
AI Overview and CapabilitiesAI Overview and Capabilities
AI Overview and Capabilities
 

Mehr von MongoDB

Mehr von MongoDB (20)

MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB SoCal 2020: Migrate Anything* to MongoDB AtlasMongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
 
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
 
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
 
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDBMongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
 
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
 
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series DataMongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
 
MongoDB SoCal 2020: MongoDB Atlas Jump Start
 MongoDB SoCal 2020: MongoDB Atlas Jump Start MongoDB SoCal 2020: MongoDB Atlas Jump Start
MongoDB SoCal 2020: MongoDB Atlas Jump Start
 
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
 
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
 
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
 
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
 
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your MindsetMongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
 
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB .local San Francisco 2020: MongoDB Atlas JumpstartMongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
 
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
 
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
 
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
 
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep DiveMongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
 
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & GolangMongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
 
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
 
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Kürzlich hochgeladen (20)

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 

MongoDB.local Sydney 2019: Building Intelligent Apps with MongoDB & Google Cloud

  • 1. Building Intelligent Apps with MongoDB and Google Cloud
  • 2. Jane Fine Director of Product Marketing, Analytics jane.fine@mongodb.com @janeuyvova
  • 3. Analytics is a Constant Underachiever 2000 Business Intelligence Data Warehouse, OLAP, Ad- hoc, Reporting, Dashboards Big Data Hadoop, MapReduce, Predictive, ML, Real-time 2010 AI Intelligent Things, IoT, Systems of Engagement 2018 “In 2018, 75% of AI projects will underwhelm because they fail to model operational considerations, causing business leaders to reset the scope of AI investments.” FORRESTER.COM/PREDICTIONS
  • 4. $40B+ eCommerce platform experience of millions of mobile gamers metadata for every single item for sale on eBay.com world’s leading design collaboration platform 20M+ users $150B+ traded reinvent travel for millions of customers lab and clinical analysis for innovative medicines personal and business finance management worldwide Applications Change Our World
  • 5. Operational AI ML Modern Applications shop for products online Intelligent App get personalized product recommendations shop over messaging app on mobile device ML
  • 6. What’s an Intelligent App? Applications are combining real-time analytics, machine learning and AI to better understand the customer, automate tasks, and provide knowledge and decision support
  • 7. Why Is This Hard? Intelligent App Developers Data Scientists RELEASE DEFINE BUILD AGILE DAT A PREP BUILD MODEL GET INSIGHT VIZ DEPLOY TRAIN/EVAL Data Engineers S E R V E A C Q U I R E M O N I T O R S C A L E P R E P A R E
  • 9. eCommerce App: SwagStore Get restocking notifications Browse for your favorite MongoDB swag Put items in cart and checkout View your orders
  • 11. Stitch: MongoDB Serverless Platform Streamlines app development with simple, secure access to data and services thousands of lines less code to write and no infrastructure to manage Gets your apps to market faster and reduces operational costs
  • 12. SwagStore: How We Built It UI components Routes Application Flow Control Google Authentication Twilio Notifications Functions Rules Triggers Service Integrations Flexible Document Model Easy to Work With Data
  • 14. Intelligent eCommerce App: SwagStore + Receive personalized product recommendations based on ML algorithm Recommendation Engine
  • 16. Intelligent SwagStore: How We Built It SwagStore Google Cloud ML trains and tunes model using TensorFlow WALS Algorithm Google Cloud Endpoints serve recommendations Stitch initiates recommendations developer data scientist developer data engineer
  • 17. Production Recommendations on GCP Google Analytics BigQuery Intelligent Web Application Rec API App Engine Cloud Endpoints Model Training Cloud Machine Learning Orchestration Cloud Composer ML Data Training Model files Browser Client Mobile Client
  • 18. The Recommendation API Google Analytics BigQuery Rec API App Engine Cloud Endpoints Model Training Cloud Machine Learning ML Data Training Model files UserID User factor x Item factors Item ID & User ID Maps Sort & Filter Item Index List Item ID & User ID Maps Item ID List ML Model
  • 19. Training Recommendation Model 1. install the model code 2. place data into your Cloud Storage Bucket 3. run training script ./mltrain.sh train gs://recserve_jfmlrecengine/swag_pageviews.csv --data-type web_views 4. trained model data (numpy arrays) is saved back into Cloud Storage Bucket
  • 20. Tuning Recommendation Model Hyperparameter tuning optimizes your machine learning model for most accuracy - “the art of data science” 1. hyperparameters passed to the tuning job on Cloud ML Engine 2. model writes a TensorFlow summary with the metric that evaluates the quality of the model 3. summary metric enables the search process of the Cloud ML Engine hyperparameter tuning service to rank the trials ./mltrain.sh tune gs://recserve_jfmlrecengine/swag_pageviews.csv - -data-type web_views
  • 21. AI does AI Systematic exploration of the model space, using the techniques finessed in AlphaGo, yields super-human performance in AI network design The X axis is model size. The Y axis is accuracy
  • 22. Generate Recommendations model.py : generate_recommendations - input user: row index of the user in the rating matrix items: list of indexes for items that the user has viewed latent factors: row and column factors generated by training the model number of desired recommendations https://jfmlrecengine.appspot.com/recommendation ?userId=5448543647176335931&numRecs=6 {"items": ["299824032" ,"299935287" ,"299865757" ,"299959410" ,"298157062" ,"299816215" ]}
  • 23. Serving Recommendations with Stitch MongoDB Stitch send a HTTP GET request to Google Cloud Endpoint to obtain recommendations For user who is logged in Get list of product recommendations Update user profile with that list Service Integrations make it simple for your app to use any third party service Functions: build complex logic orchestrate data between clients and services scale to meet usage
  • 25. Intelligent eCommerce App: SwagStore + Shop for products via chat interface AI Chatbot
  • 27. Intelligent SwagStore: How We Built It SwagStore Google DialogFlow: Intent, Entities, Webhooks Stitch - Intent Fulfilment Slack - Front End developer data scientist developer data engineer
  • 28. DialogFlow + Stitch Architecture Stitch HTTP Service Webhook Stitch Functions to retrieve products from MongoDB
  • 29. Me: “Can you help me find a jacket ?” ChatBot: “What color would you like?” Me: “White” ChatBot: “I found you a white Egmont Jacket” Rich and Natural Conversations Stitch Service Integrations
  • 30. Enabling DialogFlow Fulfillment With Stitch Stitch security enabled by default
  • 31. Enabling DialogFlow Fulfillment With Stitch perform $find given parameters requested by DialogFlow: product type and product color return item from SwagStore Catalog to DialogFlow { "fulfillmentText": "I found you a white Egmont Packable Jacket. Check it out here: https://mdb- swag- store.netlify.com/products/299824 032" }
  • 32. Intelligent SwagStore developer data scientist data engineer
  • 33. Working Together Developers Data Scientists RELEASE DEFINE BUILD AGILE DATA PREP BUILD MODEL GET INSIGHT VIZ DEPLOY TRAIN/EVAL Data Engineers S E R V E A C Q U I R E M O N I T O R S C A L E P R E P A R E
  • 34. Build. Plug In. Innovate. Intelligent App
  • 35. Resources and Credits Aydrian Howard, Jesse Krasnostein, Mike Lynn, Drew DiPalma, Avery Rosen, Shawn McCarthy, Seong Park Lukman Ramsey & Asher Halpert MongoDB Stitch: https://www.mongodb.com/cloud/stitch Google Cloud ML: https://cloud.google.com/solutions/machine-learning/recommendation-system-tensorflow-train-cloud-ml-engine https://github.com/GoogleCloudPlatform/tensorflow-recommendation-wals DialogFlow: https://dialogflow.com/docs/getting-started