Skip to content

Commit 3fae7c4

Browse files
Lower relevancy threshold and increase max relevant functions for seq… (#860)
This commit adjusts the parameters of the sequential planner to improve its performance and accuracy. The relevancy threshold is lowered from 0.70 to 0.65, which allows more functions to be considered as potential candidates for the plan. The max relevant functions is increased from 20 to 30, which gives the planner more options to choose from and reduces the risk of missing a suitable function. These changes are expected to enhance the quality of the plans generated by the planner and make them more aligned with the user's intent. Co-authored-by: Lee Miller <[email protected]>
1 parent 15622c5 commit 3fae7c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/IntegrationTests/Planning/SequentialPlanner/SequentialPlannerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public async Task CreatePlanGoalRelevantAsync(string prompt, string expectedFunc
8585
TestHelpers.ImportSampleSkills(kernel);
8686

8787
var planner = new Microsoft.SemanticKernel.Planning.SequentialPlanner(kernel,
88-
new SequentialPlannerConfig { RelevancyThreshold = 0.70, MaxRelevantFunctions = 20 });
88+
new SequentialPlannerConfig { RelevancyThreshold = 0.65, MaxRelevantFunctions = 30 });
8989

9090
// Act
9191
var plan = await planner.CreatePlanAsync(prompt);

0 commit comments

Comments
 (0)