Sources & Architecture
How the paraphrase uses RAG (Retrieval-Augmented Generation) — what is already covered, what is under construction, and how to verify.
What is RAG (Retrieval-Augmented Generation)?
RAG is an architecture in which the AI does not work from memory. Before generating any text, it first retrieves evidence from trusted external sources, then uses that evidence as context, and only then generates the final output.
Instead of "the AI wrote this because it remembered", the path is: the AI fetched the original Greek text, consulted the lexicon, verified morphology word by word, and grounded the paraphrase on that literal evidence — not on what it thought it knew.
That is what separates real RAG from "LLM with memory." Without RAG, the model would regurgitate the NIV or ESV from memory without noticing. With RAG and the anti-contamination discipline, it is forced to derive from the raw interlinear.
1. RETRIEVAL 2. AUGMENTATION 3. GENERATION ──────────── ─────────────── ───────────── UGNT/UHB ──┐ Lexicons ──┼──► [context + prompt] ──► Claude Opus ──► paraphrase + notes Strong ──┘
Layer 1 — Retrieval of the original biblical text
ACTIVEThis is the foundation. Before paraphrasing any verse, the AI queries the local MCP server which exposes the original texts and lexicons. Nothing comes from the model's memory at this layer — everything is a direct read from the database.
| Source | Coverage | MCP tool |
|---|---|---|
| UGNT (Unfoldingword Greek New Testament) | Entire New Testament, Koine Greek | get_interlinear |
| UHB (Unfoldingword Hebrew Bible) | Entire Old Testament, Biblical Hebrew | get_interlinear |
| Greek lexicon | 6,300+ entries (meaning, morphology, Strong) | get_lexicon, search_lexicon |
| Hebrew lexicon | 8,200+ entries | get_lexicon, search_lexicon |
| Morphological analysis | Tense, voice, mood, case, number, gender | get_morphology |
Guarantee: zero hallucination possible at this layer. What comes from the MCP is real, verifiable text — not the model's parametric knowledge. Every Greek or Hebrew word quoted in the notes can be audited against UGNT/UHB directly.
Layer 2 — Anti-contamination discipline
ACTIVEThe golden rule of the project: the AI is forbidden to consult, quote, or rely on existing translations. Without this discipline, even with retrieval active, the model could "remember" the NIV and produce text that looks like an original paraphrase but is actually regurgitation. The rule forces the model to derive from the raw interlinear.
Forbidden translations (non-exhaustive list):
- •English: NIV, ESV, NASB, KJV, NLT, NRSV, The Message
- •Portuguese: NVI, ARC, NAA, NTLH, A Mensagem, ACF, NVT
- •Spanish: RVR, NVI-ES, DHH, BLPH
Verification: every chapter is run through the biblia-livre-verificar-contaminacao skill before publication. If similarity to known translations exceeds the threshold, the paraphrase is discarded and redone from scratch starting from the interlinear.
Layer 3 — Academic sources of the expanded notes
IN TRANSITIONThis is the fragile point — and we are transparent about it.
The expanded notes (linguistics, historical-cultural context, textual criticism, theology, intertextuality) cite modern academic commentaries and sources. Today, those citations come from the model's training knowledge, not real-time retrieval. That means specific citations may have wrong year, edition, or page numbers, and in rare cases a reference may be plausibly fabricated.
Most citations are real and useful, but independent verification is recommended. Layer 4 is building the automated defense against this risk.
The catalog below is the official list of sources the model is instructed to cite:
Commentary series
- •Anchor Bible / Anchor Yale Bible (Yale University Press)
- •Hermeneia (Fortress) — critical, technical
- •ICC – International Critical Commentary (T&T Clark)
- •NIGTC – New International Greek Testament Commentary (Eerdmans)
- •WBC – Word Biblical Commentary (Word/Zondervan)
- •NICNT / NICOT (Eerdmans) — moderate evangelical
- •BECNT – Baker Exegetical Commentary
Lexicons
- •BDAG (Bauer-Danker-Arndt-Gingrich) — Greek NT
- •HALOT (Koehler-Baumgartner) — Hebrew OT
- •TDNT (Kittel-Friedrich) — theology of NT terms
- •NIDNTT (Colin Brown) — alternative to TDNT
- •DCH (Clines) — classical Hebrew
Critical text editions
- •NA28 (Nestle-Aland 28th ed.) — Greek NT
- •UBS5 (United Bible Societies 5th ed.) — Greek NT with apparatus
- •BHS (Biblia Hebraica Stuttgartensia) — Hebrew OT
Key commentators by book
| Book | Citable authors |
|---|---|
| Matthew | Davies-Allison, Luz, France |
| Mark | Marcus, Collins, France, Guelich-Evans |
| Luke | Fitzmyer, Bovon, Marshall, Bock, Green |
| John | Brown, Schnackenburg, Carson, Keener, Köstenberger |
| Acts | Bruce, Witherington, Pervo, Keener, Bock, Peterson |
| Pauline letters | Dunn, Wright, Käsemann, Cranfield, Fee, Thiselton, Schreiner |
Primary sources for historical context
- •Josephus — Antiquities of the Jews, The Jewish War
- •Philo of Alexandria
- •Mishnah, Talmud (Bavli/Yerushalmi), Targumim
- •Dead Sea Scrolls (Qumran) — 1QS, 1QM, 4Q
- •Greco-Romans — Tacitus, Suetonius, Pliny, Seneca, Strabo
- •Inscriptions and archaeological evidence
Manuscripts cited in textual criticism
- •Papyri — P45, P46, P66, P75
- •Uncials — ℵ Sinaiticus, B Vaticanus, A Alexandrinus, D Bezae, W Washingtonianus, Θ Koridethi
- •Minuscule families — fam. 1, fam. 13, majority Byzantine text
- •Ancient versions — Old Latin, Vulgate, Syriac Peshitta, Coptic (Sahidic, Bohairic)
Layer 4 — Cross-verification and expanded RAG
UNDER CONSTRUCTIONTo close the gap of Layer 3, two defenses are being built in parallel. When active, most citations in expanded notes will go through real retrieval — not parametric knowledge — and the Achilles' heel disappears.
Automated bibliography verification
- •Extracts every citation from the expanded notes and normalizes it to {author, work, year, pages}
- •Checks against a curated whitelist of already-approved citations
- •For non-whitelisted entries: queries OpenLibrary and Google Books to confirm existence
- •Produces a per-chapter report with status: ✓ verified / ⚠ unverified / ❌ suspect
- •Each citation in the reader will display the corresponding visual indicator
Expanded RAG for public-domain commentaries
- •Ingestion into the MCP of academic commentaries in the public domain
- •Robertson — Word Pictures in the New Testament
- •Vincent — Word Studies in the New Testament
- •J. B. Lightfoot — Pauline commentaries
- •John Calvin — complete biblical commentaries
- •Matthew Henry — Complete Commentary on the Bible
- •Adam Clarke — Commentary on the Bible
- •Jamieson-Fausset-Brown — Commentary Critical and Explanatory
- •Cambridge Bible for Schools and Colleges
- •Pulpit Commentary
- •Albert Barnes — Notes on the New Testament
The expanded-notes skill will be modified to first consult these sources via real retrieval, and only then complement with modern sources, clearly flagged as parametric. The result is that most citations become retrievable, auditable evidence — no longer opaque parametric knowledge.
Layered defenses — overview
| Risk | Defense | Status |
|---|---|---|
| Paraphrase memorized from an existing translation | Golden rule + verificar-contaminacao skill | ✅ Active |
| Wrong translation of the Greek/Hebrew term | verificar-original skill + MCP query | ✅ Active |
| Broken markdown structure | verificar-estrutura skill | ✅ Active |
| Inconsistent style across chapters | verificar-estilo-fluidez skill | ✅ Active |
| Portuguese accentuation errors | acentos-pt-es skill | ✅ Active |
| Hallucinated academic citation | verificar-bibliografia + OpenLibrary | 🔨 Under construction |
| Curated whitelist of approved citations | fontes/bibliografia-aprovada.json | 🔨 Under construction |
| Old commentaries via real retrieval | MCP expanded with PD commentaries | 🔨 Under construction |
| Visual citation-status indicator | Audit UI in the reader | 🔨 Under construction |
How you can help us audit
- •Found a suspect citation? Open an issue at github.com/Nardoto/biblia-ai-traducao
- •Do you have expertise in academic commentaries? Contribute to the whitelist of approved citations
- •Manually verified a chapter? Report it and your name goes in as the edition's auditor
- •Know other public-domain commentaries we could ingest? Suggest them — the more real sources in the MCP, the less room for hallucination