Skip to content

Aiven-Labs/sagemaker-data-transformation

Repository files navigation

Using AI to process stream data from Apache Kafka topic

This repository contains code for two demos showcasing how to use AI Models and Amazon SageMaker to analyse data flowing from Apache Kafka topic. The data is processed using AI model and send into a separate topic.

Demo 1: social media posts

Messages are processed one by one and we use two models to get sentiment analysis and offensiveness score. Origin of data is Mastodon, you can load Mastodon data by following the steps described in this article - https://go.aiven.io/tbdt-mastodon-kafka-js.

Demo 2: Amazon reviews

Each review is processed using two AI models - one to get sentiment analysis and another to classify the review. Data is taken from Amazon Fine Food Reviews dataset - https://www.kaggle.com/datasets/snap/amazon-fine-food-reviews.

Setting up Apache Kafka

You can get free trial of Aiven for Apache Kafka to run your cluster in the cloud. Here is a link to get extra credits - https://go.aiven.io/tbdt-sagemaker-signup.

Visualisation

You can visualise the results with OpenSearch Dashboards. You'll find an example of Kafka-OpenSearch connector in the file opensearch-connector.json. You can find more details on how to establish the connection in this article - https://go.aiven.io/tbdt-mastodon-kafka-opensearch

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published