Skip to content

armgit / dspy

Public Imported from GitHub
0

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.py
index 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_threads
self.stop_at_score = stop_at_score
+ self.metric_threshold = metric_threshold
self.min_num_samples = 1
self.max_num_samples = max_bootstrapped_demos
self.max_errors = max_errors