Skip to content

Reducing verbosity of function schema (in function calling) by using function advertising #10460

Answered by dmytrostruk
ankiga-MSFT asked this question in Q&A
Discussion options

You must be logged in to vote

@ankiga-MSFT

I had an idea of generating embeddings for the function descriptions and performing Top 'N' retrieval by using vector search based on the incoming query and then supply only those functions for function calling.

We have an already existing example with this case:
https://github.com/microsoft/semantic-kernel/blob/main/dotnet/samples/Concepts/Optimization/PluginSelectionWithFilters.cs

You could try to update it to include your plugins instead of sample plugins from the example and test how it works for you.

I wanted to understand if using 'function advertising' will actually reduce the function schema to include only the supplied functions?

That's correct. Only those functi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ankiga-MSFT
Comment options

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