Skip to content

Commit

Permalink
Lower relevancy threshold and increase max relevant functions for seq… (
Browse files Browse the repository at this point in the history
#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]>
  • Loading branch information
lemillermicrosoft and lemillermicrosoft authored May 8, 2023
1 parent 15622c5 commit 3fae7c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public async Task CreatePlanGoalRelevantAsync(string prompt, string expectedFunc
TestHelpers.ImportSampleSkills(kernel);

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

// Act
var plan = await planner.CreatePlanAsync(prompt);
Expand Down

0 comments on commit 3fae7c4

Please sign in to comment.