Skip to content

Commit e3a2755

Browse files
authored
Grounding threshold increased so grounding works at an acceptable level. (#193)
1 parent 741d2dd commit e3a2755

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

planengine/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const (
3030
WSPong = "pong"
3131
HealthCheckGracePeriod = 30 * time.Minute
3232
TaskTimeout = 30 * time.Second
33+
GroundingThreshold = 0.90
3334
CompensationDataStoredLogType = "compensation_stored"
3435
CompensationAttemptedLogType = "compensation_attempted"
3536
CompensationCompleteLogType = "compensation_complete"

planengine/orchestrate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ func (o *Orchestration) MatchingGroundingAgainstAction(ctx context.Context, matc
942942
normalizedPlanAction := normalizeActionPattern(o.Action.Content)
943943
normalizedUseCase := normalizeActionPattern(useCase.Action)
944944

945-
hasMatch, score, err := matcher.MatchTexts(ctx, normalizedPlanAction, normalizedUseCase, 0.75)
945+
hasMatch, score, err := matcher.MatchTexts(ctx, normalizedPlanAction, normalizedUseCase, GroundingThreshold)
946946
if err != nil {
947947
return nil, 0, fmt.Errorf("failed to match action: %w", err)
948948
}

0 commit comments

Comments
 (0)