Closed LeonardoSanBenitez closed 2 months ago
I think this might help you as it shows a history of interactions behind the scene and you can see what kind of decisions have been made:
27 - Function Calling Stepwise Planner in Microsoft Semantic Kernel
https://youtu.be/1ZIrPOjD04s?t=510
https://github.com/rvinothrajendran/MicrosoftSemanticKernelSamples/blob/04f748f5449af4867babdeac7d67385aacc0b374/SKSampleCSharp/FunctionCallingStepwiseDemo/Program.cs
Hi @LeonardoSanBenitez are you continuing to experience issues? We're going to be deprecating the StepwisePlanner
in the next week or so. Please move to use the FunctionCallingStepwisePlanner
. To help debug that planner, you can view the chat_history as shown in a syntax example. Please re-open the issue or file a new one if you need more help.
Hello, Can anybody provide an example on how to debug the plugin function invocations, specifically when using
StepwisePlanner
? I would like to obtain informations such as:plan.invoke()
The reason for my question is that when the LLM provides a wrong answer, it's very difficult to understand where is the problem. For example, in the following code:
The complete output of the above code is:
As we can see, the LLM outputs the incorrect answer "The current date is 2021-10-14." The produced action seems to be properly formatted, but I can't know if the function
time.date
was actually invoked and, if it was, what was the exact output.Just for clarification: the goal of this question is not to debug the specific example above, nor to point out a problem with the TimePlugin. The goal is to understand how I could debug this type of code, for example "you should look the the field
steps_taken
, like thisjson.loads(result['steps_taken'])[0]['observation']
" (for the above code, the field is None)Semantic kernel version: 0.5.0.dev0