Giter Site home page Giter Site logo

google-cloud-vertex-ai-agent-builder-hackathon's Introduction

Gemini-API-Developer-Competition

organised by Google

Lifestyle Bot (improves health/wellness)

Inspiration

Mental health is a complex issue and addressing mental health demands the highest level of attention and care. Unlike many other health concerns, mental health issues often intertwine with various aspects of an individual's life, including their social environment, personal experiences, and genetic predispositions. Additionally, the stigma surrounding mental health further complicates the matter, hindering individuals from seeking help and society from providing adequate support systems.

The main goal of this project is to provide a support system for an individuals's mental well-being.

Generative AI has ushered in a new era for chatbots, providing them with capabilities to engage users in more natural conversations. Generative AI models also known as LLMs(Large Language Models) have given us the opportunity to offer more personalized and foster more engaging interactions. But deploying these LLMs in consumer applications poses several challenges, including the need to add guardrails that prevent the model from generating undesirable responses. For example, in the context of building an AI for mental health, then you don't want it to generate toxic answers that bring more mental distress or teach people to engage in behaviors harmful to oneself.

What it does

Mental Wellness Companion

This bot fosters emotional well-being by generating personalized affirmations, guided meditations, and mindfulness exercises based on the user's mood and current needs. 

How we built it

Challenges we ran into

Accomplishments that we're proud of

What we learned

Environment Setup

python -V
# Output -> Python 3.10.13
# create a environment named -> .wellness-ai-agent
python -m venv .wellness-ai-agent
# activate the environment
source .wellness-ai-agent/bin/activate
# Install packages to create a Jupyter Notebook kernel
pip install jupyter ipykernel
# add your virtual environment as a kernel
python -m ipykernel install --user --name=wellness-ai-agent --display-name="Py3.10-wellness-ai-agent"
# verify kernel installation
jupyter kernelspec list
# Install the gcloud CLI - https://cloud.google.com/sdk/docs/install#linux

# Determine Linux version
getconf LONG_BIT
# Output -> 64, therefore chose Linux 64-bit(Arm)

# Download the Linux archive file
curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-478.0.0-linux-arm.tar.gz

# Extract the contents of the file
tar -xf google-cloud-cli-478.0.0-linux-arm.tar.gz

# Add gcloud CLI to path
./google-cloud-sdk/install.sh 

# Then open a new terminal so that changes can take effect

# Initialize gcloud CLI
./google-cloud-sdk/bin/gcloud init
# remove the tar file
 rm -rf google-cloud-cli-478.0.0-linux-arm.tar.gz
# Get sample cloud functions - https://cloud.google.com/functions/docs/tutorials/http
git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git
# Set a default region for functions -> https://cloud.google.com/functions/docs/locations
gcloud config set functions/region europe-west3
# Output -> Updated property [functions/region].
```


```bash
# Deploying the Cloud Function -> https://cloud.google.com/functions/docs/tutorials/http
gcloud functions deploy python-http-function \
--gen2 \
--runtime=python310 \
--source=. \
--entry-point=hello_get \ 
--trigger-http
--allow-unauthenticated

# Notes: 
# - source: path to the directory where the .py file exists with the function you want to deploy

# Retrieve your functions's URL -> https://cloud.google.com/functions/docs/calling/http#url
gcloud functions describe python-http-function \
--gen2 \
--region=europe-west3 \
--format="value(serviceConfig.uri)"
# Output -> https://europe-west3-gcp-lablab-ai-hackathon.cloudfunctions.net/python-http-function


# Delete the Cloud Function
gcloud functions delete python-http-function --gen2 --region europe-west3 
```

google-cloud-vertex-ai-agent-builder-hackathon's People

Contributors

ashish-soni08 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.