This post is part of the Voice Assistant on Raspberry Pi series.
In article #5, we injected weather data into every conversation, even for questions like “what’s your name?”. That wastes tokens. Function calling fixes this: the LLM decides when it needs a tool and only calls it when the question actually warrants it.
The complete code for this article is available on GitHub.
[Read More]