omegaes / Recommendation-Engine-BQ

A showcase how to use BigQuery to recommend personalised items for your users

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Recommender System using BigQuery

This is a demo project to show you how you can use BigQuery strength points to process BigData within seconds/minutes level.

I used PHP script to generate random data, and used gcloud CLI to connect to BigQuery for creating new dataset, creating tables and importing data.

Requirements

  • GCP account, you can get free credits once you signup
  • Install gcloud and login to your account, gcloud
  • Create new GCP project, create/get a project ID
  • export GCP_ID=YOUR_PROJECT_ID
    export GCP_BQ_DATA_LOCATION=YOUR_PREFERRED_LOCATION #US
    ./commands.sh #create new dataset in BQ, create and import required tables
  • use https://console.cloud.google.com/bigquery web console to run the query in query.sql, so you can preview results debug the query

You can refer to my article on Medium to understand how this example works, See Recommend personalised content for your app users using BigQuery.

About

A showcase how to use BigQuery to recommend personalised items for your users


Languages

Language:PHP 80.8%Language:Shell 19.2%