Skip to content

mongodb-developer/Google-Cloud-Sentiment-Chef

Repository files navigation

Generative AI Sentiment Analysis and Summarization

This is a demo of a sentiment analysis, tagging, and summarization Gemini — Google's next-generation AI model.

Quickstart

Google Cloud setup

Create two public 2nd generation Cloud Functions with the following implementations.

  1. Analyze sentiment Google Cloud Function
  2. Summarize reviews Google Cloud Function

Take a note of the deployed functions' URLs. You will need them later.

MongoDB Atlas setup

  1. Database cluster - Deploy a new MongoDB database cluster in your Atlas account. You can use the free M0 tier for this demo. - Load the sample dataset.
  2. Data API - Enable the Data API for your newly deployed cluster. - Set the readAll data access rule for the sample_restaurants.restaurants collection.
  3. Atlas Functions - Create two new Atlas Functions with the following implementations. Replace the URL placeholders with the URls of the deployed Google Cloud Functions.
  4. Atlas Triggers - Create two new Atlas Triggers with the following configuration.

Contributors ✨


Stanimira Vlaeva

Disclaimer

Use at your own risk; not a supported MongoDB product