`Planner` selected a wrong skill when there are two similar skills within a `skills` folder
See original GitHub issueDescribe the bug When I run Example12_Planning.cs, the planner failed to complete. Below is the console log:
======== Planning - Create and Execute Poetry Plan ========
Original plan:
<goal>
Write a poem about John Doe, then translate it into Italian.
</goal>
<plan>
<function.WriterSkill.ShortPoem input="John Doe" />
<function.WriterSkill.TranslateV2 input="$SHORT_POEM" language="Italian" setContextVariable="TRANSLATED_POEM" />
</plan>
Step 1 - Execution results:
<goal>
Write a poem about John Doe, then translate it into Italian.
</goal><plan>
<function.WriterSkill.TranslateV2 input="$SHORT_POEM" language="Italian" setContextVariable="TRANSLATED_POEM" />
</plan>
Step 2 - Execution results:
<goal>
Write a poem about John Doe, then translate it into Italian.
</goal><plan>
</plan>
Step 2 - COMPLETE!
Error: InvalidRequest: The request is not valid, HTTP status: BadRequest
Execution complete in 6437 ms!
fail: object[0]
Function call fail during pipeline step 0: WriterSkill.TranslateV2. Error: InvalidRequest: The request is not valid, HTTP status: BadRequest
It appears to me that the prompt here is to translate the generated poem
to Italian but because the planner
chose WriterSkill.TraslateV2
(which is the skill to translate from any language to English), it failed.
Expected behavior
The planner should select WriterSkill.Translate
skill instead of WriterSkill.TranslateV2
and executed successfully as follows
======== Planning - Create and Execute Poetry Plan ========
Original plan:
<goal>
Write a poem about John Doe, then translate it into Italian.
</goal>
<plan>
<function.WriterSkill.ShortPoem input="John Doe is a kind and generous man who loves to help others and make them smile."/>
<function.WriterSkill.Translate language="Italian"/>
</plan>
Step 1 - Execution results:
<goal>
Write a poem about John Doe, then translate it into Italian.
</goal><plan>
<function.WriterSkill.Translate language="Italian" />
</plan>
Step 2 - Execution results:
<goal>
Write a poem about John Doe, then translate it into Italian.
</goal><plan>
</plan>
Step 2 - COMPLETE!
John Doe è un uomo di grande cuore e grazia
Ha sempre un sorriso sul volto
Aiuta i poveri, i malati e i vecchi
Ma a volte la sua bontà lo mette nei guai
Come quando ha dato il suo cappotto a un tremante
Screenshots
Desktop (please complete the following information):
- OS: Ubuntu
- IDE: VSCode
Issue Analytics
- State:
- Created 6 months ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
AL quiz 5 Flashcards
Study with Quizlet and memorize flashcards containing terms like Complete the ... how successful you were in teaching specific sport skills, sportsmanship, ...
Read more >Understanding AI plugins in Semantic Kernel and beyond
Learn how to use AI plugins and how they relate to AI plugins in ChatGPT, Bing, and Microsoft 365.
Read more >Skills Quiz - alis - Government of Alberta
Think about the skills you described in your significant experiences and select those skills from the lists. To select a skill, click the...
Read more >Add and remove skills on your profile | LinkedIn Help
Click Add profile section button in your introduction section. Click Core and select Add skills from the dropdown. In the Add skill pop-up...
Read more >AP Computer Science Principles Course and Exam Description
Appearing in this publication and on AP Classroom, these planning guides outline all required course content and skills. Each big idea guide organizes ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think that’s a different error since i’m getting this error right now for services that work working earlier today… Something must be down
Yeah, it looks like it’s hallucinating the input for the
TranslateV2
skill based on the examples given, a known issue. We’re looking to update things to make it so users can supply their own examples to have it be better representative of the problem space and to remove the default examples which tend to make the model follow a pattern, particularly with GPT3 and less capable models. I’d advise trying with GPT4 if possible as that was the true target for Planner capabilities. Will keep this issue open as we iterate the next few weeks though.There are debug logs right now available about function selection: