You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Single model config: remove model arg from all action functions
Model is configured ONCE via configure_dspy() at notebook startup.
Action functions (run_baseline, run_optimization, etc.) use the
already-configured LM. No more threading issues from widget callbacks.
Fixed broken prompt_workshop() calls (missing commas from regex cleanup).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
"# Dein manueller Versuch — editiere den Prompt!\n",
77
76
"manual_workshop = prompt_workshop(\n",
78
77
" task_id=\"multihop_qa\",\n",
79
-
" model_widget=model_dd,\n",
80
-
" default_instructions=\"Read the context carefully and answer the question. Think step by step. If the answer requires combining multiple facts, do so explicitly.\",\n",
78
+
" default_instructions=\"Read the context carefully and answer the question. Think step by step.\",\n",
81
79
" max_eval=6,\n",
82
80
")\n",
83
-
"display(manual_workshop)"
81
+
"display(manual_workshop)\n"
84
82
]
85
83
},
86
84
{
@@ -123,7 +121,7 @@
123
121
" print(f\"⏳ Optimizing {task.name} with {opt_dd.value} on {model_dd.value}...\")\n",
124
122
" print(f\" This may take 10-60 seconds...\\n\")\n",
125
123
"\n",
126
-
" result = run_optimization(\"multihop_qa\", model_dd.value, opt_dd.value, max_eval=8)\n",
124
+
" result = run_optimization(\"multihop_qa\", opt_dd.value, max_eval=8)\n",
0 commit comments