Giter Site home page Giter Site logo

recsys-streaming's Introduction

recsys-streaming

recsys-streaming imitates fragment of a real-world recommender system using PyTorch for modeling, Kafka for streaming data, Spark for data processing, Structured Streaming for receiving stream from Kafka, and MongoDB for data storage, Redis for recommendations storage. The system exposes its functionalities as a FastAPI service, enabling easy interaction with the recommender system.

Components

  • PyTorch: Model serving recommendations based on Amazon Reviews'23 dataset

  • Kafka Streaming: The system consumes batch data from one Kafka topic and can retrain itself using data from another Kafka topic.

  • Spark Data Processing: Data processing tasks.

  • Structured Streaming: Retrieving data from Kafka topics.

  • MongoDB Database: Data storage for behavioral data (clicks, logs) and recommendation data.

  • FastAPI: REST API

  • Redis: Returning recommendation lists to users

System Architecture

Architecture

Dataset

The project utilizes the Amazon Reviews'23 dataset, which can be found here. For the sake of experiments data has been divided in parts to create basis for training and data streaming tasks.

Usage

1. Clone repository

git clone https://github.com/milymilek/gnn-rl-recsys.git

2. Installation

docker network create --driver bridge recsys-streaming_kafka_network
docker-compose -f recsys-streaming/docker-compose.yml up --build
docker-compose up --build

3. Demo (for Windows only)

./demo.ps1
make stream_recommendations
make stream_retrain

recsys-streaming's People

Contributors

krzysztof-kolodziejczyk avatar milymilek avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.