Skip to content

Aiven-Labs/mastodon-openai-flink-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flink Job showing integration with OpenAI to process social media data

This is a simple Flink job that reads data from a Kafka topic messages, sends them to OpenAI's GPT-3 API to get analysis, and then writes the analysis next to the message to a corresponding Kafka topic.

Prerequisites

  • You need the Aiven integration_id to retrieve the corresponding credential file, instruction are here
  • You need an OpenAI API key, you can get one here

Building the jar

mvn clean package

Parameters to pass when running the job on Aiven

In the Create new deployment dialog look for the Program args field.

  • serviceCredentials - The Aiven integration id
  • openAIKey - The OpenAI API key

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages