HERALD: A Hybrid Edge-RAG Architecture for Privacy-Preserving WhatsApp Humanoid Response Generation Using Local LLMs

HERALD introduces a novel hybrid architecture that enables fully local, privacy-preserving humanoid response generation on WhatsApp using Retrieval-Augmented Generation (RAG) and QLoRA-based fine-tuned large language models. Unlike existing cloud-based conversational AI systems that compromise user privacy, HERALD operates entirely on-device, ensuring zero data egress while maintaining high conversational fidelity. The system’s core innovation lies in the Dual-Engine Personal Adaptation (DEPA) mechanism, which separates stylistic learning (via QLoRA fine-tuning on personal chat data) from episodic memory retrieval (via FAISS-based RAG indexing). This resolves the long-standing trade-off between style fidelity and factual recall in personal AI systems. Additionally, HERALD introduces the Conversational Context Graph (CCG), a relationship-aware modeling layer that captures per-contact communication patterns such as emoji usage, response latency, and conversational tone. The architecture integrates local LLM inference (Phi-3-mini, 3.8B), hybrid retrieval (FAISS + BM25), and WhatsApp Cloud API for real-time deployment, along with humanoid behavior simulation including typing delays and message fragmentation. A 21-day user study (n=119) demonstrates: Turing Pass Rate: 78.3% Style Fidelity (BERTScore F1): 0.871 Episodic Recall Accuracy: 91.4% Average Latency: 2.3 seconds These results establish HERALD as the first empirically validated system combining local LLMs, RAG, and relationship-aware context modeling for real-time messaging. The work contributes two reusable primitives — DEPA and CCG — for future research in personal AI, digital twins, and edge intelligence.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-04-27
DOI
https://doi.org/10.5281/zenodo.19802521
Primary Topic
Mental Health via Writing
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

HERALD: A Hybrid Edge-RAG Architecture for Privacy-Preserving WhatsApp Humanoid Response Generation Using Local LLMs

Digaswala Frenisha, Sumit Soni
Zenodo (CERN European Organization for Nuclear Research)
Mental Health via Writing
article

HERALD: A Hybrid Edge-RAG Architecture for Privacy-Preserving WhatsApp Humanoid Response Generation Using Local LLMs

Digaswala Frenisha, Sumit Soni
article en

Abstract

HERALD introduces a novel hybrid architecture that enables fully local, privacy-preserving humanoid response generation on WhatsApp using Retrieval-Augmented Generation (RAG) and QLoRA-based fine-tuned large language models. Unlike existing cloud-based conversational AI systems that compromise user privacy, HERALD operates entirely on-device, ensuring zero data egress while maintaining high conversational fidelity. The system’s core innovation lies in the Dual-Engine Personal Adaptation (DEPA) mechanism, which separates stylistic learning (via QLoRA fine-tuning on personal chat data) from episodic memory retrieval (via FAISS-based RAG indexing). This resolves the long-standing trade-off between style fidelity and factual recall in personal AI systems. Additionally, HERALD introduces the Conversational Context Graph (CCG), a relationship-aware modeling layer that captures per-contact communication patterns such as emoji usage, response latency, and conversational tone. The architecture integrates local LLM inference (Phi-3-mini, 3.8B), hybrid retrieval (FAISS + BM25), and WhatsApp Cloud API for real-time deployment, along with humanoid behavior simulation including typing delays and message fragmentation. A 21-day user study (n=119) demonstrates: Turing Pass Rate: 78.3% Style Fidelity (BERTScore F1): 0.871 Episodic Recall Accuracy: 91.4% Average Latency: 2.3 seconds These results establish HERALD as the first empirically validated system combining local LLMs, RAG, and relationship-aware context modeling for real-time messaging. The work contributes two reusable primitives — DEPA and CCG — for future research in personal AI, digital twins, and edge intelligence.

Zenodo (CERN European Organization for Nuclear Research)
Parul University (IN)
Industry, innovation and infrastructure
Openalex Percentile: Top 4%
Mental Health via Writing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

HERALD: A Hybrid Edge-RAG Architecture for Privacy-Preserving WhatsApp Humanoid Response Generation Using Local LLMs — Digaswala Frenisha, Sumit Soni · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS