Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mongodb-developer/google-cloud-sentiment-chef

Sentiment Analysis, Summarization, Tagging with MongoDB Atlas and Gemini — Google Cloud's AI model
https://github.com/mongodb-developer/google-cloud-sentiment-chef

gemini gemini-pro gemini-pro-vision mongodb mongodb-atlas multimodal-sentiment-analysis

Last synced: 10 days ago
JSON representation

Sentiment Analysis, Summarization, Tagging with MongoDB Atlas and Gemini — Google Cloud's AI model

Awesome Lists containing this project

README

        

# 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](./google-cloud-functions/analyze-sentiment/)
1. [Summarize reviews Google Cloud Function](./google-cloud-functions/summarize-review-sentiment/)

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

### MongoDB Atlas setup

1. Create a [free MongoDB Atlas account](https://mongodb.com/try?utm_campaign=devrel&utm_source=google.cloud&utm_medium=github&utm_content=sentiment.chef&utm_term=stanimira.vlaeva).
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.
1. Data API
- Enable the Data API for your newly deployed cluster.
- Set the `readAll` data access rule for the `sample_restaurants.restaurants` collection.
1. Atlas Functions
- Create two new Atlas Functions with the following implementations. Replace the URL placeholders with the URls of the deployed Google Cloud Functions.
- [Analyze sentiment Atlas Function](./atlas-app-services/functions/Atlas_Triggers_analyzeReviewSentiment_1686394580.js)
- [Summarize reviews Atlas Function](./atlas-app-services/functions/Atlas_Triggers_summarizeReviewsSentiment_1686475894.js)
1. Atlas Triggers
- Create two new Atlas Triggers with the following configuration.
- [Analyze sentiment Atlas Trigger](./atlas-app-services/triggers/analyzeReviewSentiment.json)
- [Summarize reviews Atlas Trigger](./atlas-app-services/triggers/summarizeReviewsSentiment.json)

## Contributors ✨






Stanimira Vlaeva



## Disclaimer

Use at your own risk; not a supported MongoDB product