GithubHelp home page GithubHelp logo

abhijit85 / retail-pricing-search-personaliztion Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mongodb-industry-solutions/retail-pricing-search-personaliztion

0.0 0.0 0.0 2.73 MB

Retail AI pricing and personalization enhanced search results

Home Page: http://104.197.64.61:3002/

License: BSD 2-Clause "Simplified" License

JavaScript 0.60% Python 0.08% CSS 0.33% HTML 0.01% Jupyter Notebook 98.99%

retail-pricing-search-personaliztion's Introduction

Introduction

In a retail enviroment putting the customer first becomes key to success any ecommerce bussiness. So each and every interaction of the customer on a Web Application can inform about the customer prefrences and interests. Modeling around customers information help unlock value in aiding purchase decisions and there by moving the KPI of the bussiness. In this repository we have demostrated the capabilities to store real time interaction of customer on the Web application to model the following behviours:

  1. Competitive price suggestion using the purchase behaviour of the product
  2. Bussiness intelligence score for individual products to determine the sellabilitiy of the product

These modeled features are then used to power the sorting and ranking functionalities on the discoverabiltiy front of these products.

Live Demo

http://go/retail-demo

Architecture

image

Architecture Overview

The E commerce retail architecture for Competitive pricing and Search comprises of 4 main layers namely:

  1. Multi-tenant streaming ingestion
  2. Stream processing
  3. AI/ML modeling
  4. Operational Data Store and Search Engine

A modern e-commerce backed system should be able to collate data from multiple sources in real-time as well as batch loads and be able to transform this data into a schema/format upon which a Lucene search index can be built to enable discovery of the added inventory. Also the architecture should also be able to integrate customer behavior on the website positively contributes towards discoverability of inventory and at the same time supports and improves purchase decisions with a good profit margin.

These features are nice captured in the above e-commerce architecture where: 1.With the help of MongoDB Kafka connector we are able to sink real time data from multiple sources to mongodb. 2.With the help of MongoDB Spark connector and Databricks MLflow we are able to prepare features and train a robust ML model to predict the price of the inventory given the near real-time clickstream data on the given products. 3.All the generated streams of data are transformed and written into a unified view in MongoDB collection called catalog which is used to build search indexes and support querying and discovery of products. 4.With the help of Atlas Search capabilities and robust aggregation pipelines we can power features such as search/discoverability, hyper personalization and featured sort on Mobile/Web applications.

Prerequisites

Before running the app, you'll need to have the following installed on your system:

  • Python 3
  • pip3
  • npm

Deploy the Backend Service

  • Clone this repository to your local machine.

    git clone https://github.com/ashwin-gangadhar-mdb/retail-pricing-search-personaliztion.git
    cd mobile-demo/backend-service
  • Update the MongoDB Connection String in the following file.

    • ./service/app.py
  • Install the project dependencies using pip

    pip3 install -r [label](service/requirements.txt)
    
  • Run the Python code.

    python3 app.py
    

Running the App

  • Start Kafka Client
  • Update the kafka sink connector config in
    • ./kafka/mongodb-clogs-sink-connector.properties
    • ./kafka/mongodb-atp-sink-connector.properties
  • Run the connectors for kakfa
    ./run-connector.sh ./kafka/mongodb-clogs-sink-connector.properties ./kafka/mongodb-atp-sink-connector.properties
  • Clone this repository to your local machine.
    git clone https://github.com/ashwin-gangadhar-mdb/retail-pricing-search-personaliztion.git
  • Install the dependencies using npm or Yarn.
    cd frontend
    npm install react-scripts@latest
  • Update the API credentials and Endpoints in the following location
    • frontend/src/config.js
  • Start the React App in a separate terminal window.
npm start

retail-pricing-search-personaliztion's People

Contributors

ashwin-gangadhar-mdb avatar vittalpai 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.