New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add C# simple planner #598
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
.NET
Issue or Pull requests regarding .NET code
kernel.core
labels
Apr 22, 2023
dluc
force-pushed
the
dluc122plannerskill
branch
from
April 22, 2023 10:55
b5fd4de
to
f81ebc4
Compare
shawncal
previously requested changes
Apr 22, 2023
dluc
force-pushed
the
dluc122plannerskill
branch
from
April 24, 2023 01:57
f81ebc4
to
0534138
Compare
dotnet/src/Skills/Skills.Planning/SequentialPlanner/skprompt.txt
Outdated
Show resolved
Hide resolved
dotnet/src/Skills/Skills.Planning/SequentialPlanner/skprompt.txt
Outdated
Show resolved
Hide resolved
dotnet/src/SemanticKernel.Abstractions/Orchestration/PlanningException.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Skills/Skills.Planning/SequentialPlanner/PlannerConfig.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Skills/Skills.Planning/SequentialPlanner/SequentialPlanner.cs
Outdated
Show resolved
Hide resolved
dotnet/src/IntegrationTests/Planning/SequentialPlanner/SequentialPlanParserTests.cs
Outdated
Show resolved
Hide resolved
dotnet/src/Skills/Skills.UnitTests/Planning/SequentialPlanner/PlanParserTests.cs
Outdated
Show resolved
Hide resolved
dluc
force-pushed
the
dluc122plannerskill
branch
6 times, most recently
from
April 25, 2023 00:42
f999a46
to
6215f6b
Compare
dluc
added
PR: ready for review
All feedback addressed, ready for reviews
and removed
PR: in progress
Under development and/or addressing feedback
samples
labels
Apr 25, 2023
dluc
force-pushed
the
dluc122plannerskill
branch
from
April 25, 2023 02:08
6215f6b
to
5223e81
Compare
dluc
force-pushed
the
dluc122plannerskill
branch
3 times, most recently
from
April 26, 2023 00:57
95bdead
to
c5c64ec
Compare
dluc
force-pushed
the
dluc122plannerskill
branch
2 times, most recently
from
April 26, 2023 01:11
e63d646
to
6dfd726
Compare
dluc
force-pushed
the
dluc122plannerskill
branch
2 times, most recently
from
April 26, 2023 08:26
a54a827
to
2511d40
Compare
lemillermicrosoft
requested changes
Apr 26, 2023
dotnet/src/Extensions/Planning.SequentialPlanner/SKContextSequentialPlannerExtensions.cs
Show resolved
Hide resolved
lemillermicrosoft
requested changes
Apr 26, 2023
lemillermicrosoft
added
PR: feedback to address
Waiting for PR owner to address comments/questions
and removed
PR: ready for review
All feedback addressed, ready for reviews
labels
Apr 26, 2023
5 tasks
dluc
force-pushed
the
dluc122plannerskill
branch
from
April 26, 2023 18:07
2511d40
to
c121e2b
Compare
all feedback addressed, a couple of TODOs for later |
dluc
added
PR: ready for review
All feedback addressed, ready for reviews
PR: ready to merge
PR has been approved by all reviewers, and is ready to merge.
and removed
PR: feedback to address
Waiting for PR owner to address comments/questions
labels
Apr 26, 2023
lemillermicrosoft
previously approved these changes
Apr 26, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Left some nit comments. All can be resolved as appropriate.
dotnet/src/Extensions/Planning.SequentialPlanner/FunctionViewExtensions.cs
Outdated
Show resolved
Hide resolved
dotnet/src/SemanticKernel/SkillDefinition/ImportSemanticSkillFromDirectory.cs
Show resolved
Hide resolved
dotnet/src/SemanticKernel/SkillDefinition/InlineFunctionsDefinitionExtension.cs
Show resolved
Hide resolved
dluc
force-pushed
the
dluc122plannerskill
branch
3 times, most recently
from
April 26, 2023 18:52
28f2d37
to
d3562ea
Compare
...tensions/Extensions.UnitTests/Planning/SequentialPlanner/TestHelpers/SequentialPlanParser.cs
Outdated
Show resolved
Hide resolved
lemillermicrosoft
requested changes
Apr 26, 2023
...xtensions/Extensions.UnitTests/Planning/SequentialPlanner/TestHelpers/ExceptionExtensions.cs
Outdated
Show resolved
Hide resolved
...nsions/Extensions.UnitTests/Planning/SequentialPlanner/TestHelpers/FunctionViewExtensions.cs
Outdated
Show resolved
Hide resolved
...xtensions/Extensions.UnitTests/Planning/SequentialPlanner/TestHelpers/SKContextExtensions.cs
Outdated
Show resolved
Hide resolved
dluc
force-pushed
the
dluc122plannerskill
branch
from
April 26, 2023 20:30
d3562ea
to
2dbf11f
Compare
lemillermicrosoft
approved these changes
Apr 26, 2023
Kevdome3000
pushed a commit
to Kevdome3000/semantic-kernel
that referenced
this pull request
Apr 26, 2023
Need for a simple planner showing how to leverage semantic functions to implement Intent Detection pattern and turn it into a planner, selecting a function given a goal. The planner also allows to provide a Planning capability using less powerful models, like GPT3 (text-davinci-002) and GPT3.5 (text-davinci-003, GPT turbo 3.5), where often the more advanced planner can hallucinate. Fix one bug in "WriterSkill/ShortPoem/skprompt.txt" leading to incorrect results when the goal was missing a termination (period or new line) * New package `Microsoft.SemanticKernel.Planning.ActionPlanner`extending the Planning namespace. The package is automatically installed, ie it's part of SK metapackage. * Move SequentialPlanner into the new package `Microsoft.SemanticKernel.Planning.SequentialPlanner` lib, part of the metapackage * Add new Action Planner. * Store planner prompts to skprompt.txt, using embedded resources to avoid files overwriting each other.
dluc
added a commit
that referenced
this pull request
Apr 29, 2023
### Motivation and Context Need for a simple planner showing how to leverage semantic functions to implement Intent Detection pattern and turn it into a planner, selecting a function given a goal. The planner also allows to provide a Planning capability using less powerful models, like GPT3 (text-davinci-002) and GPT3.5 (text-davinci-003, GPT turbo 3.5), where often the more advanced planner can hallucinate. Fix one bug in "WriterSkill/ShortPoem/skprompt.txt" leading to incorrect results when the goal was missing a termination (period or new line) ### Description * New package `Microsoft.SemanticKernel.Planning.ActionPlanner`extending the Planning namespace. The package is automatically installed, ie it's part of SK metapackage. * Move SequentialPlanner into the new package `Microsoft.SemanticKernel.Planning.SequentialPlanner` lib, part of the metapackage * Add new Action Planner. * Store planner prompts to skprompt.txt, using embedded resources to avoid files overwriting each other.
dehoward
pushed a commit
to lemillermicrosoft/semantic-kernel
that referenced
this pull request
Jun 1, 2023
### Motivation and Context Need for a simple planner showing how to leverage semantic functions to implement Intent Detection pattern and turn it into a planner, selecting a function given a goal. The planner also allows to provide a Planning capability using less powerful models, like GPT3 (text-davinci-002) and GPT3.5 (text-davinci-003, GPT turbo 3.5), where often the more advanced planner can hallucinate. Fix one bug in "WriterSkill/ShortPoem/skprompt.txt" leading to incorrect results when the goal was missing a termination (period or new line) ### Description * New package `Microsoft.SemanticKernel.Planning.ActionPlanner`extending the Planning namespace. The package is automatically installed, ie it's part of SK metapackage. * Move SequentialPlanner into the new package `Microsoft.SemanticKernel.Planning.SequentialPlanner` lib, part of the metapackage * Add new Action Planner. * Store planner prompts to skprompt.txt, using embedded resources to avoid files overwriting each other.
golden-aries
pushed a commit
to golden-aries/semantic-kernel
that referenced
this pull request
Oct 10, 2023
### Motivation and Context Need for a simple planner showing how to leverage semantic functions to implement Intent Detection pattern and turn it into a planner, selecting a function given a goal. The planner also allows to provide a Planning capability using less powerful models, like GPT3 (text-davinci-002) and GPT3.5 (text-davinci-003, GPT turbo 3.5), where often the more advanced planner can hallucinate. Fix one bug in "WriterSkill/ShortPoem/skprompt.txt" leading to incorrect results when the goal was missing a termination (period or new line) ### Description * New package `Microsoft.SemanticKernel.Planning.ActionPlanner`extending the Planning namespace. The package is automatically installed, ie it's part of SK metapackage. * Move SequentialPlanner into the new package `Microsoft.SemanticKernel.Planning.SequentialPlanner` lib, part of the metapackage * Add new Action Planner. * Store planner prompts to skprompt.txt, using embedded resources to avoid files overwriting each other.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
.NET
Issue or Pull requests regarding .NET code
PR: ready for review
All feedback addressed, ready for reviews
PR: ready to merge
PR has been approved by all reviewers, and is ready to merge.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Need for a simple planner showing how to leverage semantic functions to implement Intent Detection pattern and turn it into a planner, selecting a function given a goal.
The planner also allows to provide a Planning capability using less powerful models, like GPT3 (text-davinci-002) and GPT3.5 (text-davinci-003, GPT turbo 3.5), where often the more advanced planner can hallucinate.
Fix one bug in "WriterSkill/ShortPoem/skprompt.txt" leading to incorrect results when the goal was missing a termination (period or new line)
Description
Microsoft.SemanticKernel.Planning.ActionPlanner
extending the Planning namespace. The package is automatically installed, ie it's part of SK metapackage.Microsoft.SemanticKernel.Planning.SequentialPlanner
lib, part of the metapackage