To cite this paper use one of the standards below:
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.
With nearly 200,000 papers published, Galoá empowers scholars to share and discover cutting-edge research through our streamlined and accessible academic publishing platform.
Learn more about our products:
This proceedings is identified by a DOI , for use in citations or bibliographic references. Attention: this is not a DOI for the paper and as such cannot be used in Lattes to identify a particular work.
Check the link "How to cite" in the paper's page, to see how to properly cite the paper