Skip to content

Commit

Permalink
Update SemanticCascadeProcessing.py
Browse files Browse the repository at this point in the history
  • Loading branch information
severian42 authored Nov 3, 2024
1 parent 79d2a9e commit 17a29f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SemanticCascadeProcessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ def _calculate_dynamic_temperature(
"""
try:
# Lower base temperature from config
base_temp = min(0.4, float(self.config.llm_config.temperature))
base_temp = min(0.6, float(self.config.llm_config.temperature))

# Reduced layer-specific adjustments
layer_adjustments = {
Expand All @@ -1001,7 +1001,7 @@ def _calculate_dynamic_temperature(
layer_adj = layer_adjustments.get(layer_name, 0.0)

# Scale novelty influence
novelty_influence = novelty_score * 0.2 # Reduce novelty impact
novelty_influence = novelty_score * 0.4

# Calculate final temperature with dampened scaling
final_temp = base_temp + (layer_adj * novelty_influence)
Expand All @@ -1012,7 +1012,7 @@ def _calculate_dynamic_temperature(
except Exception as e:
if self.config.debug_mode:
print(f"Error calculating temperature: {str(e)}")
return 0.3 # Conservative fallback temperature
return 0.3

def _call_llm(
self,
Expand Down

0 comments on commit 17a29f3

Please sign in to comment.