How dhrupad-05/visual-task-factory works
Visual Task Factory builds validated synthetic chart-forensics tasks, then benchmarks policies or multimodal models and presents results in a web UI. The documented workflow runs from seeded scene generation through rendering, question construction and independent validation, followed by evaluation, failure analysis and API/web consumption. The graph includes major documented capabilities such as minimal pairs, provider credentials, and human spot-check validation. Source evidence is partial; unverified details are omitted or shown as dashed.
Main entry points: pipeline.py Build and benchmark · experiments.py Experiment runner · generator.py Scene generator · api.py FastAPI service
Components 24
Task generation
- Scene generator
backend/vtf/scene/generator.py - Minimal pairs
backend/vtf/scene/pairs.py - Chart renderer
backend/vtf/render/charts.py - Questions and answers
backend/vtf/questions/templates.py - Pure answers
backend/vtf/questions/answers.py - Task contracts
backend/vtf/schemas.py
Validation
- Validation orchestrator
backend/vtf/validate/pipeline.py - Pixel re-extraction
backend/vtf/validate/reextract.py - Pixel extraction
backend/vtf/validate/pixel.py
Evaluation
- Experiment runner
backend/vtf/eval/experiments.py - Model adapters
backend/vtf/eval/adapters.py - Provider credentials
backend/vtf/provider_settings.py - Answer scorer
backend/vtf/eval/scorer.py - Response cache
backend/vtf/eval/cache.py - Experiment store
backend/vtf/eval/storage.py - Build and benchmark
backend/vtf/pipeline.py
API and web
- FastAPI service
backend/vtf/api.py - Web API client
frontend/src/api/client.ts - Web application
frontend/src/App.tsx - Research views
frontend/src/pages
Analysis
- Failure classifier
backend/vtf/analyze/classify.py - Severity weighting
backend/vtf/eval/severity.py
Other components
- Researcher
- Model providers
Connections 27
- Researcher → Web application: uses
README.md - Scene generator → Task contracts: creates specs
backend/vtf/scene/generator.py - Minimal pairs → Task contracts: creates variants
backend/vtf/scene/pairs.py - Chart renderer → Scene generator: renders
backend/vtf/render/charts.py - Questions and answers → Pure answers: uses answers
backend/vtf/questions/templates.py - Questions and answers → Scene generator: uses scene
backend/vtf/questions/templates.py - Build and benchmark → Scene generator: generates
backend/vtf/pipeline.py - Build and benchmark → Chart renderer: renders
backend/vtf/pipeline.py - Build and benchmark → Questions and answers: builds tasks
backend/vtf/pipeline.py - Build and benchmark → Validation orchestrator: validates tasks
backend/vtf/pipeline.py - Validation orchestrator → Pixel re-extraction: checks answers
backend/vtf/validate/pipeline.py - Pixel extraction → Chart renderer: reads geometry
backend/vtf/validate/pixel.py - Build and benchmark → Experiment runner: runs evaluation
backend/vtf/pipeline.py - Experiment runner → Model adapters: calls models
backend/vtf/eval/experiments.py - Experiment runner → Response cache: uses cache
backend/vtf/eval/experiments.py - Experiment runner → Experiment store: persists runs
backend/vtf/eval/experiments.py - Experiment runner → Provider credentials: loads credentials
- Model adapters → Model providers: sends requests
- Build and benchmark → Answer scorer: scores answers
backend/vtf/pipeline.py - Build and benchmark → Failure classifier: classifies failures
backend/vtf/pipeline.py - Failure classifier → Answer scorer: scores prediction
backend/vtf/analyze/classify.py - Build and benchmark → Severity weighting: weights severity
backend/vtf/pipeline.py - FastAPI service → Failure classifier: serves analysis
backend/vtf/api.py - Web API client → FastAPI service: requests data
README.md - Web application → Web API client: loads data
frontend/src/App.tsx - Web application → Research views: routes views
frontend/src/App.tsx - FastAPI service → Build and benchmark: reads artifacts