.Net: few-shot examples with function calling are not currently working/supported
Scenario: I would like to provide few shot examples in a prompt based on the user request, so that reliable plans can be generated for scenarios that are similar to the few-shot examples. I haven’t been able to figure out how to specify steps in few-shot examples that would call native functions with information extracted from the current user request.
Here is an example from OpenAI forum that is similar to what needs to be supported with SK: https://community.openai.com/t/few-shot-and-function-calling/265908
This has been discussed on Discord and here is info from SK team:
- So some bad news... looks like the Azure OpenAI SDK doesn't provide a constructor for assistant requested function calls, which makes it impossible to create few-shot examples for example calling.
- there was a regression in the Azure AI SDK, they took away the ability to create “fake” messages with function calls.
Is there any update on this?
Thanks for bumping this. We're tackling this as part of this issue: https://github.com/microsoft/semantic-kernel/issues/5153
It's captured as Simulated function calls
closing as a dupe