Preprint / Version 1

LLM agent with a Naive RAG architecture applied to the SUS Ombudsman's Office: an intelligent automation proposal for screening and analyzing citizen submissions

##article.authors##

  • Mara Dantas Pereira Pontifical Catholic University of Rio de Janeiro image/svg+xml https://orcid.org/0000-0002-5943-540X
    • Conceptualization
    • Formal Analysis
    • Investigation
    • Methodology
    • Project Administration
    • Software
    • Supervision
    • Visualization
    • Writing – Review & Editing
  • Leonardo Andrade Santos Reginaldo Universidade Nove de Julho image/svg+xml https://orcid.org/0009-0003-7829-2250
    • Conceptualization
    • Data Curation
    • Formal Analysis
    • Investigation
    • Methodology
    • Project Administration
    • Software
    • Supervision
    • Validation
    • Writing – Original Draft Preparation
    • Writing – Review & Editing
  • Míria Dantas Pereira Pontifical Catholic University of Rio Grande do Sul image/svg+xml https://orcid.org/0000-0002-9774-9717
    • Investigation
    • Methodology
    • Resources
    • Writing – Original Draft Preparation
    • Writing – Review & Editing
    • Supervision

DOI:

https://doi.org/10.1590/SciELOPreprints.16445

Keywords:

Big Language Model, Augmented Generation by Recovery, SUS Ombudsman, Natural Language Processing, Digital Public Health, AI Agents

Abstract

The ombudsman services of the Brazilian Unified Health System (SUS) receive an increasing volume of citizen complaints (complaints, denunciations, suggestions and compliments), the manual analysis of which poses operational challenges to public health management. This work presents the implementation of an agent based on the Large Language Model (LLM), using Naive Retrieval-Augmented Generation (RAG) architecture, to automate the triage, sentiment classification, and response generation of complaints registered with the SUS Ombudsman. The solution employs the Llama 3 model through the Ollama API, multilingual vectorization with the paraphrase-multilingual-MiniLM-L12-v2 model, information retrieval by cosine similarity, and an interactive interface developed in Gradio, running in a Google Colab environment. The study describes the components of the implemented architecture and discusses possibilities for evolution towards an Advanced RAG approach, incorporating orchestration via LangChain, vector persistence in PostgreSQL with pgvector, and reranking by Cross-Encoder. This initiative aligns with recent efforts to incorporate artificial intelligence into the SUS (Brazilian Unified Health System) ombudsman services, reinforces the potential of these technologies to increase the efficiency of listening and service processes in public health.

Downloads

Download data is not yet available.

Author Biography

Mara Dantas Pereira, Pontifical Catholic University of Rio de Janeiro

Graduated in Psychology at Tiradentes University - UNIT. Member of the Education, Technologies and Contemporaneity study group - GPETEC of UNIT; Member of the Education, Culture and Subjectivity Research Group - GPECS at the Federal University of Sergipe - UFS; Member of the Human Motricity Biosciences Laboratory - LABIMH at UNIT; and Senior member of the League of Psychoanalysis Tiradentes - LIPT of UNIT.

Posted

06/15/2026

How to Cite

LLM agent with a Naive RAG architecture applied to the SUS Ombudsman’s Office: an intelligent automation proposal for screening and analyzing citizen submissions. (2026). In SciELO Preprints. https://doi.org/10.1590/SciELOPreprints.16445

Section

Health Sciences

Plaudit

Data statement

  • The research data is available on demand, condition justified in the manuscript