DSPy: The framework for programming—not prompting—language models
Python
FIX: BootstrapFewShotWithRandomSearch.metric_threshold is not set in __init__
chentienan0c7f82e52ffd
diff --git a/dspy/teleprompt/random_search.py b/dspy/teleprompt/random_search.pyindex e1663cae8..b95bd6e46 100644--- a/dspy/teleprompt/random_search.py+++ b/dspy/teleprompt/random_search.py@@ -31,6 +31,7 @@ class BootstrapFewShotWithRandomSearch(Teleprompter):self.num_threads = num_threadsself.stop_at_score = stop_at_score+ self.metric_threshold = metric_thresholdself.min_num_samples = 1self.max_num_samples = max_bootstrapped_demosself.max_errors = max_errors