Library / RAG & Knowledge Bases
RAG & Knowledge Bases
Build labeled Reddit opinion dataset with Apify, OpenAI, and Supabase
Runs weekly to scrape configured subreddits via Apify, classifies comments with OpenAI, and stores posts and comments in Supabase with vector embeddings for search.
What it does
## Build a labeled Reddit dataset for AI training with Apify, OpenAI, and Supabase ### How it works This workflow runs on a weekly schedule to scrape configured Reddit subreddits through Apify, then splits the scraped data into post and comment processing branches. Post records are inserted into Supabase and embedded into a Supabase vector store, while comments are classified with OpenAI, saved to Supabase, and embedded separately for semantic search or analysis. ### Setup steps - Configure the weekly schedule in the Run weekly trigger. - Set the target subreddits, sort order, time filter, and minimum score in Define Dataset Inputs. - Add valid Apify credentials and configure the Reddit scraping actor used by Scrape subreddits with Apify. - Configure Supabase credentials, target tables, and vector store settings for the post and comment insert/embed nodes. - Configure OpenAI credentials for comment classification and both embedding model nodes. ### Customization Adjust the subreddit list, score threshold, sort, and time filter to change what content is collected. The OpenAI classification prompt and Supabase table schemas can also be tailored to different reaction categories or downstream analytics needs. ### Who's it for Data engineers and ML builders assembling a labeled Reddit dataset for fine-tuning classifiers or feeding a RAG system with community opinions
The steps
- Set Reddit Dataset Inputs
- Scrape Subreddits via Apify
- Generate Post Rows
- Insert Post into Supabase
- Embed Post to Supabase
- OpenAI Post Embeddings Model
- Load Post Document
- Generate Comment Rows
- OpenAI Reaction Classifier
- Prepare Comment for Insertion
- Insert Comment into Supabase
- Embed Comment to Supabase
- OpenAI Comment Embeddings Model
- Load Comment Document
16 steps in total.
Similar automations
Social Media PublishingDraft and review Reddit and Quora posts with Claude and Google Sheets22 stepsLead Generation & EnrichmentAnalyze Reddit Posts for Leads and Draft Replies18 stepsSocial Media PublishingPost Automated Reddit Discussions with OpenAI and Airtable7 stepsContent Writing & GenerationFind LinkedIn Post Ideas from Reddit Posts with OpenAI17 steps