Hi Chat interface is a single entry point. So how do I determine which plugin to call? For example I have two functions 1 semantic function and one native function When I type a query how the program decide which one to call? Is it via the skprompt definition ?
Hi @SebastianLouisSG. You can call the prompt manually if you like. var semanticFunctions = kernel.ImportPluginFromPromptDirectory(functionDirectory); var excuseResult = await kernel.InvokeAsync(semanticFunctions["Excuses"], new KernelArguments { ["input"] = "my cat" }); But what works best, especially with GPT-4 is automatic function calling. OpenAIPromptExecutionSettings settings = new() { ToolCallBehavior = ToolCallBehavior.AutoInvokeKernelFunctions }; var result = await kernel.InvokePromptAsync($"Question: {question}", new(settings)); With this setting, the LLM will use the descriptions of the functions you've loaded to decide if is should call one or more of them and it will do it automatically for you.
Hi, it's nice to learn here. However, it seems we can not try this on our own until we have paid subscription to either OpenAI or Azure AI service. Correct?