Get the few-shot demonstration examples from a compiled module. Returns the demos that were selected during optimization (e.g., by LabeledFewShot or BootstrapFewShot teleprompters).
See also
Other optimizer accessors:
apply_best_config(),
best_params(),
config_diff(),
export_module_code(),
optimization_summary(),
top_trials()
Examples
if (FALSE) {
tp <- LabeledFewShot(k = 4L)
compiled <- compile(tp, mod, trainset)
demos <- best_demos(compiled)
}
