The error you're seeing is a known Windows issue with PyTorch in virtual environments.
Docker provides a Linux environment that avoids Windows DLL issues:
# Copy template and edit with your keys
copy .env.template .env
notepad .envAdd your keys (both optional):
GEMINI_API_KEY: Get from https://makersuite.google.com/app/apikeySLACK_WEBHOOK_URL: Create at https://api.slack.com/messaging/webhooks
docker-compose up -dThis creates:
- PostgreSQL 15 with pgvector (port 5432)
- FastAPI application (port 8000)
No pgAdmin setup needed - Docker manages everything!
# Run all tests
docker-compose exec api pytest tests/ -v
# Run specific test file
docker-compose exec api pytest tests/unit/test_models.py -v
# Run without clustering tests (if still issues)
docker-compose exec api pytest tests/ -v --ignore=tests/unit/test_clustering.pydocker-compose exec api python scripts/generate_demo_data.py --count 100# Dry run (no Slack notification)
docker-compose exec api python scripts/weekly_run.py --dry-run
# Full run (requires Slack webhook)
docker-compose exec api python scripts/weekly_run.py# Check logs
docker-compose logs -f api
# View generated files (on host)
dir logs\If you prefer running tests locally:
Download and install: https://aka.ms/vs/17/release/vc_redist.x64.exe
.venv\Scripts\activate
pytest tests/ -v --ignore=tests/unit/test_clustering.pyThe API and other tests will still run.
- None! System works with zero API keys (rules-only mode)
GEMINI_API_KEY: Adds LLM-enhanced insights (free tier available)SLACK_WEBHOOK_URL: Enables Slack delivery (free)
- Managed by Docker - no manual setup needed
- PostgreSQL 15 with pgvector extension
- Auto-initialized on first start
- Data persists in
postgres_datavolume
# Check services are running
docker-compose ps
# Test API
curl http://localhost:8000/health
# Check database
docker-compose exec db psql -U insightflow -d insightflow -c "\dt"- ✅ Start Docker services
- ✅ Generate demo data
- ✅ Run analysis (dry-run)
- 🔧 Add Slack webhook (optional)
- 🔧 Add Gemini key (optional)
- 🚀 Set up n8n workflows (see n8n/workflows/README.md)