The flow
Starts it 2Model 5Logic 9Service 4
The steps in the order they run, from what starts it.
- 1Google Gemini Chat ModelLm Chat Google GeminiModel
- 2Structured Output ParserOutput Parser StructuredModel
- 3Google Gemini Chat Model1Lm Chat Google GeminiModel
- 4manual trigger when testingManual triggerStarts it
- 5check once a day if new post are availableSchedule triggerStarts it
- 6LLM2Chain LlmModel
- 7LLM1Chain LlmModel
- 8Get post data from supabaseSupabaseService
- 9prepare data to be inserted in supabaseCodeLogic
- 10If the condition is satisfiedIfLogic
- 11and extract their reddit idCodeLogic
- 12insert new reddit postSupabaseService
- 13get all comments for the current postRedditService
- 14Loop Over Every PostsSplit In BatchesLogic
- 15get saved post from reddit profileRedditService
- 16Wait (rate limiting)WaitLogic
- 17extract relevant attribut from commentsCodeLogic
- 18extract relevant attribut and filter posts based on subredditCodeLogic
- 19aggregate post and comment into a single textCodeLogic
- 20further filtering existing posts wrt existing posts in databaseCodeLogic