Hybrid Architecture for Virtual Assistants: LLMs with Task Delegation to Specialized SLMs

- 325780
Poster
Favorite this paper
How to cite this paper?
Abstract

This work proposes a hybrid architecture for virtual assistants based on LLMs (Large Language Models), responsible for understanding the user's intent and delegating the task to specialized SLMs (Small Language Models) optimized for specific domains. The goal is to reduce computational cost and improve efficiency in automated service, with initial application in the areas of public security and civil defense.

The architecture uses an LLM as the entry point, responsible for interpreting the request, correcting possible errors, and structuring the text before forwarding it to a specific SLM. The public security SLM was trained to classify urban reports into categories such as robbery, theft, disturbance of the peace, and damage to property, using TF-IDF vectorization and SVM classification. The civil defense SLM analyzes data from CEMADEN rain gauges, local weather stations, and geospatial (KML) files of risk areas, applying deterministic rules calibrated with experts and enriching responses with official documents using the RAG (Retrieval-Augmented Generation) technique.

The data used includes approximately 800 simulated records of urban incidents, real-time rainfall and weather information, and risk zone maps provided by the Civil Defense of São José dos Campos (SP). The architecture was validated in simulated tests, presenting promising qualitative results: in the public security domain, 46 out of 50 cases were correctly classified by experts; in the civil defense domain, all simulated critical scenarios resulted in correct alerts. The average response time of the complete system was approximately 2 seconds, with feasible operation on conventional computing infrastructure.

The proposed solution proved to be scalable, auditable, and adaptable to other areas of public management, such as health, education, and urban mobility. The modularity of the architecture facilitates the inclusion of new SLMs and integration with institutional platforms, such as the 156 system, expanding the potential social impact through faster, more accurate, and well-founded responses.

Share your ideas or questions with the authors!

Did you know that the greatest stimulus in scientific and cultural development is curiosity? Leave your questions or suggestions to the author!

Sign in to interact

Have a question or suggestion? Share your feedback with the authors!

Institutions
  • 1 Instituto Tecnológico da Aeronáutica - ITA
Track
  • 10. IA- OR and AI
Keywords
Virtual Assistants
LLMs
SLMs