Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

incremental

chenmoneygithubf3a87f7e7fa7
diff --git a/dspy/teleprompt/random_search.py b/dspy/teleprompt/random_search.py
index ecfdff4b3..c1aeef54c 100644
--- a/dspy/teleprompt/random_search.py
+++ b/dspy/teleprompt/random_search.py
@@ -125,15 +125,12 @@ class BootstrapFewShotWithRandomSearch(Teleprompter):
score = 0 if program._assert_failures > 0 else score
######################################################
- print("Score:", score, "for set:", [len(predictor.demos) for predictor in program.predictors()])
-
if len(scores) == 0 or score > max(scores):
print("New best score:", score, "for seed", seed)
best_program = program
scores.append(score)
- print(f"Scores so far: {scores}.")
- print(f"Best score: {max(scores)}")
+ print(f"Best score so far: {max(scores)}")
score_data.append((score, subscores, seed, program))