Liebchen Router Sends Simple Voice Commands Past the LLM
The developer of Liebchen, a local voice assistant built with Ollama and LangGraph, noticed that simple commands like locking the computer did not need a language model. They built a two-tier router in ai/router.py that first matches input against a table of regex patterns, executing fixed actions immediately for system, app, media, info, search, and stop intents. Requests that match no pattern are forwarded to a stateful LLM agent that can call tools and use memory. The deterministic fast path keeps common commands quick and predictable, and adding a new command requires only one table entry. The approach follows the principle of using the cheapest reliable tool and reserving the LLM for requests that need it.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in