A quick script that I whipped up to analyze Reddit posts using OpenRouter and HuggingFace models.
Be sure to set your environment variables in .env.example and rename it to .env before running the script.
Included a list of "all" (maybe some are missing) available subreddits.
Create postgresql database and enable vector extension, tables will be created automatically when running main.py
psql -U postgres -c "CREATE EXTENSION IF NOT EXISTS vector;"
pip install -r requirements.txt
python main.py
python analyze.py