How zamaan-ai/blindspot-hunter works
BlindSpot Hunter is a visual robustness evaluation lab. Its main workflow creates validated A/B/C counterfactual task families, queries live or simulated vision-language models, and scores causal reliability and visual evidence; boundary discovery and real-chart transfer are complementary experiments. README and excerpts support the domain stages, while several UI/API links and unsampled experiment internals remain unverified and are shown only where documented or omitted.
Main entry points: api.py FastAPI Service · interventions.py Counterfactual Families · cli.py CLI · models.py VLM Adapters
Components 18
User Interfaces
- Interactive Lab
frontend/src/App.tsx - Streamlit Explorer
app_streamlit.py - FastAPI Service
src/blindspot_hunter/api.py - CLI
src/blindspot_hunter/cli.py
Task Construction
- Task and Result Schemas
src/blindspot_hunter/schemas.py - Counterfactual Families
src/blindspot_hunter/interventions.py - Topology Tasks
src/blindspot_hunter/generators/topology.py - Chart Tasks
src/blindspot_hunter/generators/charts.py - Task Validator
src/blindspot_hunter/validator.py
Model Evaluation
- VLM Adapters
src/blindspot_hunter/models.py - Response Cache
src/blindspot_hunter/cache.py - Causal Metrics
src/blindspot_hunter/metrics.py - Evidence Verification
src/blindspot_hunter/evidence.py
Experiments and Results
- Boundary Search
src/blindspot_hunter/adaptive_search.py - Real-Chart Pilot
src/blindspot_hunter/pilot.py - Robustness Atlas
src/blindspot_hunter/atlas.py
Other components
- Researcher
- External VLM APIs
Connections 27
- Researcher → Interactive Lab: uses
README.md - Researcher → Streamlit Explorer: explores
README.md - Researcher → CLI: runs
README.md - Interactive Lab → FastAPI Service: requests
- Streamlit Explorer → Counterfactual Families: creates families
app_streamlit.py - Streamlit Explorer → VLM Adapters: queries models
app_streamlit.py - FastAPI Service → Counterfactual Families: uses
src/blindspot_hunter/api.py - FastAPI Service → Task Validator: uses
src/blindspot_hunter/api.py - FastAPI Service → VLM Adapters: uses
src/blindspot_hunter/api.py - FastAPI Service → Causal Metrics: scores
- FastAPI Service → Evidence Verification: verifies
src/blindspot_hunter/api.py - Counterfactual Families → Topology Tasks: generates
src/blindspot_hunter/interventions.py - Counterfactual Families → Chart Tasks: generates
src/blindspot_hunter/interventions.py - Counterfactual Families → Task Validator: validates
src/blindspot_hunter/interventions.py - Counterfactual Families → Task and Result Schemas: builds
src/blindspot_hunter/interventions.py - Task Validator → Task and Result Schemas: checks
src/blindspot_hunter/validator.py - VLM Adapters → External VLM APIs: queries
src/blindspot_hunter/models.py - VLM Adapters → Response Cache: uses
src/blindspot_hunter/models.py - FastAPI Service → Response Cache: uses
src/blindspot_hunter/api.py - FastAPI Service → Boundary Search: runs
src/blindspot_hunter/api.py - FastAPI Service → Real-Chart Pilot: runs
src/blindspot_hunter/api.py - FastAPI Service → Robustness Atlas: builds
- CLI → Boundary Search: runs
src/blindspot_hunter/cli.py - CLI → Real-Chart Pilot: runs
src/blindspot_hunter/cli.py - CLI → Robustness Atlas: builds
src/blindspot_hunter/cli.py - CLI → Causal Metrics: scores
src/blindspot_hunter/cli.py - Evidence Verification → Response Cache: uses
src/blindspot_hunter/evidence.py