Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for tool/function calling #7

Open
christianliebel opened this issue Jul 2, 2024 · 3 comments
Open

Support for tool/function calling #7

christianliebel opened this issue Jul 2, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@christianliebel
Copy link

I would like to request the addition of tool/function calling functionality to the Prompt API. This feature is available in some models and allows the model to invoke specific actions using a well-defined contract, typically in JSON format. This functionality is beneficial for various use cases that require outputs of a specific structure.

Examples:

@domenic domenic added the enhancement New feature or request label Jul 29, 2024
domenic added a commit that referenced this issue Aug 14, 2024
domenic added a commit that referenced this issue Aug 14, 2024
@KenjiBaheux
Copy link

Thank you for the suggestion to add tool/function calling functionality.

To assess the feasibility of this feature, we would appreciate it if folks could provide more details on the typical context size required for defining the functions needed in actual use cases. This information will help us understand the potential impact on performance and resource requirements, especially for an on-device context.

@CakeCrusher
Copy link

Function calling at this size of model is not practical. Although constrained generation would be a practical intermediate solution for this.
You can delegate constrained generation to the user by giving them access to output logits.

This is the most practical approach IMO

@ChristianWeyer
Copy link

Function Calling may indeed be too heavy for those models.
However, models fine-tuned for JSON data extraction would be really helpful. Then we can use approved patterns that are e.g. implemented in Instructor (https://js.useinstructor.com/)

domenic added a commit that referenced this issue Oct 9, 2024
domenic added a commit that referenced this issue Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants