Open mudler opened 7 months ago
It may also be necessary to provide a method to inject the definition of the tool as json string into the prompt template.
It may also be necessary to provide a method to inject the definition of the tool as json string into the prompt template.
that's already present, you can render in the template by ranging over {{.Functions}}
. See for example: https://github.com/mudler/LocalAI/blob/f9c75d487851749d3b382f64bb3d8a9bf52d94dd/embedded/models/hermes-2-pro-mistral.yaml#L23
Will be nice , to use functionary models do you have already a yaml recipe for the functionary models?
Functionary models are trained to output functions.
We should just provide a flag to turn off calculating BNF grammars as we are already doing and just leave to the LLM to answer appropriately.