About Projects AI & Data GitHub ↗

London, UK · Data Engineering · Digital Humanities

Yongjia Yuan 袁永甲

I build data platforms and research software for the humanities: PostgreSQL and dbt warehouses with idempotent, provenance-carrying pipelines; citation-verification systems that bind claims to sources; and OCR/HTR tooling for Greek, Syriac, Latin, and Coptic corpora. PhD in the Study of Religions (SOAS, 2026); 350,000+ words of patristic translation.

Portrait of Yongjia Yuan
London · 2026 φῶς ἐξ ἀνατολῶν

1,554

scans in the live DPC reader

8.6k

CiteIndex lifetime PyPI downloads

350k+

words of patristic translation

662

CiteIndex tests passing

Figures from project READMEs, November 2026; downloads include CI traffic and are not unique users.

01

Data Platforms

PostgreSQL 16, dbt, and Airflow pipelines with append-only raw layers, canonical payload hashing, idempotent loads, SCD2 history, and data-quality marts — built so every scholarly record keeps its provenance.

02

Verifiable AI

Retrieval and citation systems that cite or stay silent: CSL-JSON records, scoped FTS5 passage search, SHA-256 hashes, and Merkle proofs binding every generated claim to a specific source passage.

03

Manuscripts → Data

Kraken- and Tesseract-based OCR/HTR, layout analysis, and curator-reviewed releases turning Greek, Syriac, Coptic, Armenian, and Geʽez sources — print and medieval hands — into searchable, benchmark-gated corpora.

Selected Work

All projects →

CiteIndex Warehouse

citeindex-warehouse

Bibliographic data platform — PostgreSQL, dbt, Airflow

Data platform built on CiteIndex output: Python loaders into an append-only PostgreSQL raw layer with canonical payload hashing, idempotent ON CONFLICT loads, per-page checkpoints, and rejected-record capture. Enriched from OpenAlex and Crossref; dbt models SCD2 document-version history, author identity, dimensions, facts, and pipeline-health and data-quality marts. Orchestrated by a daily Airflow 3 DAG; GitHub Actions runs ruff, pytest, dbt build on PostgreSQL 16, and Terraform validate. 69 dbt checks and 55 Python tests pass on the sample build, benchmarked at 10,000 records.

PostgreSQL 16dbtAirflow 3PythonTerraform

CiteIndex

citeindex

Structured citation extraction and verification

Python CLI and MCP server that turn PDFs, URLs, Office documents, DjVu, and media into CSL-JSON records and Markdown with source provenance and Merkle integrity checks. Deterministic HTML metadata extraction, CJK vertical OCR, versioned quotation locators, and source-bound citation replay. Entity-authority normalisation matches people, works, and places against ORCID, Crossref, and Wikidata and abstains on ambiguous identities. 662 tests passing, 6 skipped; 8,600+ lifetime PyPI downloads (November 2026).

PythonCSL-JSONMCPOCRMerklePyPI

Digital Patristic Corpus

dpc

Bibliography, corpus API, and source reader for the Church Fathers

Python/FastAPI and SQLite catalogue with a React/TypeScript source reader and OpenSeadragon image navigation. Evidence-bearing bibliography ingestion and curator review produce immutable publication generations with digest checks and generation-pinned access. The live PG 31 and PG 30 readers serve 1,554 scans (1,533 unique pages) with searchable OCR, validated Migne columns, work-level Chicago author-date citations, copyable CSL JSON, and IIIF Presentation 3 export. One FastAPI process behind Caddy and a systemd unit; 306 tests passed, 1 skipped (November 2026).

PythonFastAPISQLiteReactOpenSeadragonIIIF

Shutong 書童

shutong

Host-agnostic academic research backend via MCP

Python backend and standalone TypeScript MCP server that index CiteIndex artifacts into a rebuildable SQLite FTS5 corpus. Returns original passages with quote spans, context, source locators, edition metadata, and Chicago author-date citations; BM25 with optional local BGE-M3 topic search and Passim text parallels; exports supplied Markdown drafts to DOCX. 24 MCP tools across five coding-agent hosts. Quality gate on a 280-document / 98,664-node corpus: Chinese hit@10 20/20 and Merkle roots 280/280 with zero mismatches.

PythonTypeScriptMCPSQLite FTS5BM25PyPI

Toolbox

Data Engineering

PostgreSQL 16dbtApache Airflow 3SQLAlchemypsycopg 3SCD2 modellingTerraformDocker ComposeGitHub ActionsOpenAlex / Crossref

Languages

PythonTypeScriptRustSQLBash

Retrieval & AI

MCPBM25SQLite FTS5OllamaDSPySentence embeddingsWhisperClaude / Gemini APIs

OCR / HTR & NLP

KrakenTesseractYOLOMinerUGLM-OCROCRmyPDFPyMuPDFTranskribusspaCyStanzaCLTK

Web & Infrastructure

FastAPIReactAstro 6Tailwind CSS 4SQLiteKeycloakRedisCaddysystemdRunPod / Vast.ai

DH Data & Standards

CSL-JSONTEI/XMLIIIFALTO / PAGE XMLMerkleEntity resolution

Correspondence

yyjfwoaini@gmail.com

London, UK · open to data engineering, DH / GLAM, and RSE roles and collaboration