You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.info(f"Selected strategy {i}/{MAX_STRATEGIES_FOR_INFERENCE} for inference: {strategy.strategy_id} (success rate: {strategy.success_rate:.2f})")
126
127
127
-
# 7. Handle strategies for the problem type
128
+
# 7. Handle situation when no strategies are selected
128
129
ifnotselected_strategies:
129
-
logger.info(f"No existing strategies found for problem type: {problem_type}")
130
-
logger.info(f"Running without strategy augmentation - using base system prompt only")
130
+
ifnotexisting_strategies:
131
+
# No strategies exist for this problem type
132
+
logger.info(f"No strategies exist for problem type '{problem_type}'. Enable learning mode with 'spl_learning=True' to create strategies.")
133
+
else:
134
+
# Strategies exist but don't meet the minimum success rate
135
+
logger.info(f"Strategies exist for problem type '{problem_type}' but none meet the minimum success rate threshold of {MIN_SUCCESS_RATE_FOR_INFERENCE:.2f}.")
136
+
logger.info(f"Enable learning mode with 'spl_learning=True' to improve strategies.")
131
137
132
-
# Just use the original system prompt with no augmentation
138
+
# Use the original system prompt without augmentation
139
+
logger.info("Running without strategy augmentation - using base system prompt only.")
133
140
augmented_prompt=system_prompt
134
141
else:
135
-
# 8. Augment the system prompt with the selected strategies
142
+
# Normal case - strategies were selected
143
+
# Augment the system prompt with the selected strategies
# Log a suggestion if no strategies found in inference mode
153
-
ifnotlearning_modeandnotexisting_strategies:
154
-
logger.info(f"No strategies exist for problem type '{problem_type}'. To learn strategies for this specific problem type, enable learning mode by setting 'spl_learning=True' in the request config.")
155
-
156
-
# Use unmodified query - no need to add fallback message to the actual query
0 commit comments