Skip to content

Function calling, thousands of functions - best practice #9947

Discussion options

You must be logged in to vote

@toresenneseth straight away I can say that presenting the model with 2K functions is problematic because the model will typically get confused and will produce poor responses. Below is some information which should help you:

  1. Some guidance on function calling limitations: https://learn.microsoft.com/en-us/semantic-kernel/concepts/plugins/adding-openapi-plugins?pivots=programming-language-csharp#tips-and-tricks-for-adding-openapi-plugins
  2. Sample showing one strategy to handle large number of function: https://github.com/microsoft/semantic-kernel/blob/main/dotnet/samples/Concepts/Optimization/PluginSelectionWithFilters.cs
  3. Agents may be a good choice, we have internal teams who use teams of …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@toresenneseth
Comment options

Answer selected by sophialagerkranspandey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants