This Streamlit app generates and evaluates proto-questions for forecasting (pipeline: mutations → sources → questions) using OpenRouter.
- Python 3.10+
- An OpenRouter key (
OPENROUTER_API_KEY)
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt- Export your key (or enter it in the sidebar after launch):
export OPENROUTER_API_KEY="sk-or-..."
- Start Streamlit from the repo root:
streamlit run app.py
- In the UI, choose your models (main/judge) or keep the defaults, then click Run full pipeline.
No need to create a new app or point to
__init__: simply selectapp.pyas the entrypoint.
python -m py_compile app.py qgcb/*.pyapp.py: Streamlit interface.qgcb/: business logic (prompts, pipeline, OpenRouter helpers, Pydantic models, config).