DH 2026

Daejeon, July 27–31

Wed, July 2916:30–18:00S048106
Short Paper

Agentic RAG for Buddhist Knowledge Systems: Pluralism, Provenance, and Query-Conditioned Cross-Media Mediation

Chiwei Che
Rover Technology LLC · chiwei.che@rovervoice.com
Jen-Jou Hung
Dharma Drum Institute of Liberal Arts; Comprehensive Buddhist Electronic Text Archive Foundation · jenjou.hung@dila.edu.tw
Yu-Chun Wang
Dharma Drum Institute of Liberal Arts · ycwang@dila.edu.tw
Cheng-En Xie
Comprehensive Buddhist Electronic Text Archive Foundation · snowbear@cbeta.org.tw

Introduction

From Digitization to Interpretive Accountability: Digital Humanities projects have dramatically expanded access to Buddhist materials—canonical texts, recorded teachings, and community records—yet access does not automatically yield interpretability. Buddhist knowledge is transmitted through lineage, pedagogical intent, ritual context, and communal authority, and these conditions are often lost when archives are treated as undifferentiated text. In this domain, the limitations of standard Retrieval-Augmented Generation (RAG) are not only technical but also hermeneutic: “naïve RAG” pipelines (generic splitting + dense retrieval) tend to encourage de-contextualized and modality-siloed answers, and can blur doctrinal plurality by over-generalizing distinct traditions.

We target two primary audiences: (i) public users seeking accessible and contextually grounded entry points, and (ii) expert practitioners requiring provenance-rich, citable, cross-media evidence for pedagogy and scholarship. These audiences are grounded in internal deployment use cases within a major Buddhist institution (Dharma Drum Mountain). This motivates a system that can switch mediation strategies conditioned on the query, rather than presuming one stable user or one “best” retrieval method.

A Three-Pillar Agentic Architecture

Motivated by the recurring failure modes of passage-centric naïve RAG, we identify breakdowns in contextual structure, constraint satisfaction, and pedagogical scaffolding. We propose a three-pillar architecture:

Pillar I: Ontological Modeling for Context Preservation

We replace generic splitting with ontology-aware polymorphic modeling that treats context as a first-class scholarly object. We operationalize three primary objects:

  • EventChunk: Time- and place-bounded records (e.g., community practice), preserving ritual context, prerequisites, and procedural sequences.
  • DeepContentChunk: Dense doctrinal content spanning text and media, preserving hierarchical source structure and media anchors.
  • FAQChunk: Verified Q\&A pairs acting as pedagogical bridges.

This layer preserves doctrinal metadata (e.g., teaching_tradition, practice_method) prior to indexing, ensuring fidelity to distinct lineage traditions and mitigating the risk of algorithmic homogenization.

Pillar II: Agent Reasoning Layer (Query-Conditioned Switching)

The system’s central contribution is query-conditioned switching, in which an agent dynamically routes requests to specialized pipelines based on query structure and evidence requirements.

Temporal–Semantic Hybrid Retrieval (Events): For time-bounded queries (e.g., “Find group practice in Taipei this week”), the agent prioritizes deterministic temporal/geospatial filtering over metadata before ranking, ensuring constraint satisfaction is explicitly enforced.

Hybrid Lexical–Semantic Retrieval (Doctrine): For doctrinal queries (e.g., “Explain the concept of 'Emptiness' in the Diamond Sutra”), the system combines dense retrieval with lexical signals (BM25) to preserve fidelity to traditional terminology.

Cross-Media Orchestration: The layer decomposes multi-step expert requests (e.g., “Explain Four Noble Truths → Find related events → Recommend video excerpt”) into linked sub-tasks, producing responses that are actionable and evidence-linked across modalities.

Pillar III: Pedagogical Scaffolding through Ontological Co-Presence

Beyond stateless retrieval, the system addresses the vocabulary mismatch between lay inquiries and canonical discourse. Rather than segregating registers behind an upstream intent-classification gate, our polymorphic ontology integrates FAQ-format pedagogical chunks (FAQChunk) into the same retrieval pool as canonical doctrinal sources (DeepContentChunk). A query in lay vocabulary can therefore surface FAQ entries alongside book-chapter passages and audio/video transcripts in a single retrieval pass — creating retrievable pathways for novices while maintaining auditable provenance, without depending on the system correctly identifying the user's expertise level upfront.

Corpus, Baselines, and Evaluation Design

We evaluate our system on a proprietary, structurally annotated Buddhist corpus curated by Dharma Drum Mountain. The corpus includes 110 books (4,063 chapters) from the Dharma Drum Complete Works of Master Sheng Yen. In addition, it contains 1,515 video lectures (~427 hours), 148 audio episodes (~114 hours), 2,051 short-form devotional texts, verified Q&A pairs, and a comprehensive set of upcoming events comprising 4,768 session instances (spanning August 2025 to July 2026).

After ingestion, the dataset yields 38,620 retrievable units (“chunks”), indexed under a polymorphic source ontology. Specifically, EventChunk represents events and venues; DeepContentChunk covers books, magazines, news articles, narrative prose, and automatically generated audio/video transcripts; and FAQChunk contains curated Q&A pairs.

We compare our system against a Naive RAG baseline reflecting common practice: uniform chunking with dense retrieval, without ontology-aware structuring or metadata filtering. Both systems share the same dense embedding model (BAAI/bge-m3, 1024-dimensional, multilingual) and cross-encoder reranker (BAAI/bge-reranker-large), allowing us to isolate the contribution of system architecture rather than model quality. Each experiment further includes ablations targeting individual architectural components.

We report four categories of evaluation metrics:

  • Constraint satisfaction: Success@5 and SatFrac@5 for entity-bounded queries (e.g., temporal constraints).
  • Standard IR metrics: hit@K and MRR under strict chunk-level matching, evaluated on a set of 1,100 LLM-synthesized queries (one gold chunk per query) across multiple ontological sources. We also include a multi-chunk extension (recall@K, coverage@K, lineage_coverage@K) designed to capture expert-level synthesis tasks that cannot be evaluated through single-chunk matching alone.
  • Generation quality: Answer Relevancy, Faithfulness, Contextual Precision, and Contextual Recall, assessed by an LLM-as-a-judge on answers grounded in retrieved evidence.
  • Cross-modal coverage: the distribution of retrieved evidence across different sources and modalities (e.g., book chapters, FAQs, narrative prose, audio/video transcripts), serving as a quantitative proxy for cross-media mediation.

Preliminary Results

We present preliminary findings spanning all three architectural pillars across four experiments — one per metric category.

  • Temporal Constraint Satisfaction (Pillars I + II): On a benchmark of 100 time-bounded event queries, constructed from 10 temporal anchors (e.g., today, next week, this month, summer) and 10 activity categories (e.g., meditation, rituals, lectures), all grounded to a fixed reference date (May 4, 2026), the Naive RAG baseline (dense retrieval, top-5, no metadata filtering) achieves Success@5 = 20.0% and SatFrac@5 = 9.2%.

    In contrast, the Agentic Event Pipeline — where time-sensitive queries are routed to a specialized branch that applies structured *publish_date* filtering prior to ranking — achieves Success@5 = 90.0% and SatFrac@5 = 84.0%, corresponding to improvements of 4.5× and 9.1×, respectively.

    Notably, the structured temporal field required for this filtering is available only because the EventChunk ontology preserves it during ingestion (Pillar I), while the routing mechanism itself is enabled by query-conditioned agentic switching (Pillar II).

  • Architectural Headroom (Pillar I — Standard IR):Across 1,100 LLM-synthesized queries with one gold chunk per case, evaluated under strict chunk-level Hit@5 matching, per-source scoped retrieval (perfect routing) achieves macro Hit@5 = 0.895; unified single-collection retrieval achieves 0.844; fan-out across 11 collections achieves 0.854. The 5-percentage-point gap between scoped and unified — visible only because the per-source ontology exists — quantifies the residual cost of cross-corpus mixing and motivates query-conditioned routing as the next architectural lever. Naive uniform chunking would not afford this comparison at all.
  • Hybrid Lexical–Semantic Retrieval (Pillar II — Doctrine, Generation Quality): On 30 doctrinal queries from the Dharma Drum Complete Works corpus, hybrid retrieval combining dense bge-m3 with BM25 over jieba-tokenized text (fused via Reciprocal Rank Fusion) outperforms dense-only retrieval on all four LLM-judged generation-quality dimensions: Contextual Recall 1.000 vs 0.983 (+1.7pp), Answer Relevancy 0.968 vs 0.952 (+1.5pp), Faithfulness 0.956 vs 0.933 (+2.3pp), and most prominently Contextual Precision 0.895 vs 0.849 (+4.6pp). The largest gain is on Contextual Precision — exactly the dimension where BM25's exact-term matching aids rare Buddhist terminology (e.g., 般若, 波羅蜜多, 阿賴耶識) that dense embeddings tend to over-generalize. Latency overhead is negligible (+2ms p50).
  • Cross-Modal Co-Presence (Pillar III — Cross-Modal Coverage): On a set of 30 doctrinal queries evaluated over the unified retrieval pool, the top-5 results consistently include evidence drawn from nine distinct corpora across four modalities. The distribution of retrieved content is as follows: book chapters (42.7%), FAQ entries (22.7%), narrative prose (12.0%), audio and video transcripts (14.7% combined), and news/magazine articles (5.3% combined). By contrast, a naive single-corpus baseline is limited to retrieving evidence from only one modality. These results indicate that the polymorphic ontology enables cross-modal pedagogical evidence within a single retrieval pass, thereby reducing reliance on upstream intent classification and improving the system's ability to support multi-perspective interpretation.

Conclusion

Buddhist knowledge systems require more than fluent language generation: they demand preservation of doctrinal plurality, contextual integrity, and source accountability. As our results show, these requirements are not adequately addressed by conventional, passage-centric RAG pipelines.

A key observation of this work is that such systems often *appear* to work. Fluent and plausible responses can create an illusion of correctness while masking failures in constraint satisfaction, contextual grounding, and provenance. This leads to epistemic overconfidence, especially for non-expert users. We therefore argue for a stricter boundary for conversational AI — evaluating systems not only by fluency, but by their ability to satisfy constraints, preserve context, and remain verifiably grounded in sources.

We address this gap through an agentic RAG framework that reframes retrieval as a query-conditioned mediation process. By combining ontology-driven representations, constraint-aware retrieval, and cross-modal orchestration, the system adapts to diverse interpretive needs — from novice guidance to expert-level, evidence-based inquiry. Our results show substantial gains in constraint satisfaction (4.5× Success@5, 9.1× SatFrac@5 vs naive baseline) and demonstrate hybrid lexical–semantic retrieval improvements on doctrinal queries (+4.6pp Contextual Precision), alongside coherent cross-modal evidence synthesis across nine corpora and four modalities.

More broadly, our findings suggest that RAG in interpretive domains must shift from static retrieval to adaptive, accountable mediation. Rather than replacing interpretive authority, such systems should serve as infrastructure for responsible engagement — balancing accessibility with rigor. Future work focuses on collaborative curation workflows, enabling both domain experts and real users to participate in certifying and endorsing system outputs. Such human-in-the-loop processes will further enrich the knowledge graph and help ensure alignment with evolving community consensus.

References
  1. Daniel Veidlinger (2019): “Digital Humanities and Buddhism: An Introduction (Introductions to Digital Humanities – Religion)”, ISBN: 9783110518368.
  2. Marcus Bingenheimer, Justin Brody, and Ryan Nichols (2025): “Experiments in distant reading: Using topic modeling on Chinese Buddhist texts from 500--800 CE”, in Digital Humanities Quarterly, 19(1).
  3. CBETA (Chinese Buddhist Electronic Text Association) (2026): https://cbeta.org/en.
  4. Marcus Bingenheimer (2015): “The Digital Archive of Buddhist Temple Gazetteers and Named Entity Recognition (NER) in Classical Chinese”, in Lingua Sinica, 1:8, 1-19.
  5. Sebastian Nehrdich, Marcus Bingenheimer, Justin Brody, and Kurt Keutzer (2023): “MITRA-zh: An efficient, open machine translation solution for Buddhist Chinese”, in Proceedings of the Joint 3rd NLP4DH and 8th IWCLUL, 266–277.
  6. Xiang Wei (2024): “The Use of Large Language Models for Translating Buddhist Texts from Classical Chinese to Modern English: An Analysis and Evaluation with ChatGPT 4, ERNIE Bot 4, and Gemini Advanced”, in: Religions 15(12):1559, Special Issue Buddhism, Science and Technology: Challenges to Religions from a Digitalized World).
  7. Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, Sebastian Riedel, Douwe Kiela (2020): “Retrieval-augmented generation for knowledge-intensive NLP tasks”, in: NIPS Article No.: 793, Pages 9459 - 9474.
  8. Yao, Shunyu and Zhao, Jeffrey and Yu, Dian and Du, Nan and Shafran, Izhak and Narasimhan, Karthik and Cao, Yuan (2023): “ReAct: Synergizing reasoning and acting in language models.”, in: International Conference on Learning Representations(ICLR).