Skip to content

Plugins and Token Count #7200

Closed Answered by stephentoub
jamesmkfoo23 asked this question in Q&A
Jul 11, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Is my understand correct that the more plugins are loaded to Kernel, the more prompt tokens would be required for planner to decide on the plugin?

Yes. Every time you send a request to the service with function calling enabled, a description of each function needs to be included in the request, so the more functions there are and the longer the description of each, the more prompt tokens will be consumed.

This is one of the reasons it's a good idea to try to partition your plugins/functions per use, such that you only send with a given request/prompt the relevant functions. Another important reason is, in general with today's models, you'll get better planning out of them if you limit t…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jamesmkfoo23
Comment options

@Scar11
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