semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

.Net: few-shot examples with function calling are not currently working/supported

Open deepinderdeol opened this issue 2 years ago • 3 comments

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.

deepinderdeol avatar Jan 10 '24 18:01 deepinderdeol

Is there any update on this?

deepinderdeol avatar Apr 09 '24 18:04 deepinderdeol

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

madsbolaris avatar Apr 10 '24 15:04 madsbolaris

closing as a dupe

madsbolaris avatar Jun 07 '24 10:06 madsbolaris