Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions planengine/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const (
WSPong = "pong"
HealthCheckGracePeriod = 30 * time.Minute
TaskTimeout = 30 * time.Second
GroundingThreshold = 0.90
CompensationDataStoredLogType = "compensation_stored"
CompensationAttemptedLogType = "compensation_attempted"
CompensationCompleteLogType = "compensation_complete"
Expand Down
2 changes: 1 addition & 1 deletion planengine/orchestrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ func (o *Orchestration) MatchingGroundingAgainstAction(ctx context.Context, matc
normalizedPlanAction := normalizeActionPattern(o.Action.Content)
normalizedUseCase := normalizeActionPattern(useCase.Action)

hasMatch, score, err := matcher.MatchTexts(ctx, normalizedPlanAction, normalizedUseCase, 0.75)
hasMatch, score, err := matcher.MatchTexts(ctx, normalizedPlanAction, normalizedUseCase, GroundingThreshold)
if err != nil {
return nil, 0, fmt.Errorf("failed to match action: %w", err)
}
Expand Down
Loading