Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Update bootstrap.py

Omar Khattabd51bf8cae02d
diff --git a/dspy/teleprompt/bootstrap.py b/dspy/teleprompt/bootstrap.py
index ba4e649a3..269ff1b08 100644
--- a/dspy/teleprompt/bootstrap.py
+++ b/dspy/teleprompt/bootstrap.py
@@ -152,7 +152,7 @@ class BootstrapFewShot(Teleprompter):
if self.metric:
metric_val = self.metric(example, prediction, trace)
if self.metric_threshold:
- success = metric_val > self.metric_threshold
+ success = metric_val >= self.metric_threshold
else:
success = metric_val
else: