[{"data":1,"prerenderedAt":317},["ShallowReactive",2],{"en-project-detail-multi-agent-editorial-rag-2026-12-03":3,"en-project-related-posts-multi-agent-editorial-rag-2026-12-03":315,"en-project-ko-counterpart-multi-agent-editorial-rag-2026-12-03":316},{"id":4,"title":5,"alternateNames":6,"body":7,"coverImage":265,"coverImageAlt":266,"date":267,"description":268,"englishRole":269,"englishSummary":270,"extension":271,"featured":272,"gallery":6,"liveLabel":6,"liveUrl":6,"meta":273,"navigation":272,"order":274,"path":275,"period":276,"projectStatus":277,"repoUrl":6,"role":269,"sanitized":272,"seo":278,"seoDescription":6,"seoTitle":6,"specs":279,"status":298,"stem":299,"subtitle":300,"tags":301,"techStack":308,"track":313,"__hash__":314},"enProjects/en/projects/multi-agent-editorial-rag.md","Domain Literature RAG & Multi-Agent Editorial / Handout Automation Pipeline",null,{"type":8,"value":9,"toc":250},"minimark",[10,14,23,26,33,36,41,44,66,68,72,75,86,118,120,124,127,133,138,141,145,148,152,155,159,162,164,168,171,191,193,197,200,224,226,230],[11,12,5],"h1",{"id":13},"domain-literature-rag-multi-agent-editorial-handout-automation-pipeline",[15,16,17,18,22],"p",{},"This project is a ",[19,20,21],"strong",{},"literature-grounded RAG (Retrieval-Augmented Generation) and multi-agent automation pipeline"," engineered to produce technical photography science columns, optical diagrams, and classroom print handouts with zero hallucinated formulas or tonal drift.",[15,24,25],{},"Single-prompt usage of general-purpose LLMs routinely fails on specialized photographic science—fabricating chemical ratios in sensitometry, misstating Zone System density relationships, or muddling optical aberration physics. Equally, a single text output cannot satisfy the distinct layout and diagram constraints required across long-form web articles, square social carousels, and A4/A5 classroom handouts.",[15,27,28,29,32],{},"Centered on a locally indexed corpus of vetted photography literature, this pipeline orchestrates a ",[19,30,31],{},"role-separated Directed Acyclic Graph (DAG)"," across planning, style-guided drafting, atomic diagram assembly, and reverse fact-checking, feeding directly into Satori and W3C Paged Media print typesetting.",[34,35],"hr",{},[37,38,40],"h2",{"id":39},"_1-problem-statement-engineering-bottlenecks","1. Problem Statement & Engineering Bottlenecks",[15,42,43],{},"Three recurring technical bottlenecks limited scalable educational publishing:",[45,46,47,54,60],"ol",{},[48,49,50,53],"li",{},[19,51,52],{},"Domain Hallucination Risk",": Beyond basic exposure concepts, general LLMs frequently introduced statistical errors in reciprocity failure formulas, MTF chart interpretation, and darkroom developer chemistry.",[48,55,56,59],{},[19,57,58],{},"Flat AI Prose & Voice Mismatch",": Standard instruction-tuned models default to repetitive boilerplate phrasing, failing to capture the cadence of an experienced educator balancing academic precision with studio practice.",[48,61,62,65],{},[19,63,64],{},"Cross-Medium Layout Fragmentation",": Re-authoring the same curriculum unit for long-form web reading, 1:1 social cards, and 300 DPI A4/A5 print handouts imposed heavy manual re-layout overhead.",[34,67],{},[37,69,71],{"id":70},"_2-literature-rag-knowledge-indexing-architecture","2. Literature RAG & Knowledge Indexing Architecture",[15,73,74],{},"To enforce factual rigor, a curated corpus spanning classical photography science textbooks through modern digital optics papers is structured and indexed in a local vector store.",[76,77,82],"pre",{"className":78,"code":80,"language":81},[79],"language-text","[Source Corpus] ──> [Hierarchical Chunking (512 tok)] ──> [BGE-M3 Embeddings] ──> [Local ChromaDB]\n                                                                                         │\n[Query Analyzer] ──> [Keyword & Intent Extraction] ───> [Hybrid Reranking] ──────────────┘\n","text",[83,84,80],"code",{"__ignoreMap":85},"",[87,88,89,106,112],"ul",{},[48,90,91,94,95,98,99,98,102,105],{},[19,92,93],{},"Hierarchical Semantic Chunking",": Rather than naive character slicing, a 512-token sliding window preserves heading hierarchy (",[83,96,97],{},"H1","/",[83,100,101],{},"H2",[83,103,104],{},"H3",") and paragraph boundaries. Optical equations and tables retain intact Markdown structure so retrieval never severs formula context.",[48,107,108,111],{},[19,109,110],{},"Dense + Sparse Hybrid Retrieval",": BM25 sparse matching captures exact domain terms (e.g., focal length, depth of field, subtractive color synthesis) while dense BGE-M3 embeddings resolve conceptual queries.",[48,113,114,117],{},[19,115,116],{},"Authority-Tier Metadata Weighting",": Sources carry explicit reliability tiers (Class A: standard academic texts, Class B: technical manuals, Class C: editorial essays), biasing retrieval toward authoritative references first.",[34,119],{},[37,121,123],{"id":122},"_3-multi-agent-orchestration-dag","3. Multi-Agent Orchestration DAG",[15,125,126],{},"To prevent context contamination common in monolithic prompts, each editorial stage runs as a single-responsibility agent node in a controlled DAG:",[76,128,131],{"className":129,"code":130,"language":81},[79],"+──────────────────────────────────────────────────────────────────────────────+\n|                        Multi-Agent Orchestration DAG                         |\n+──────────────────────────────────────────────────────────────────────────────+\n  [Stage 1: Planning & Retrieval]\n      │  - Outline topic structure & technical learning objectives\n      │  - Retrieve Top-K mandatory literature citations from ChromaDB\n      ▼\n  [Stage 2: Style-RAG Drafting]\n      │  - Synchronize pacing & paragraph rhythm from curated essay corpus\n      │  - Draft content grounded strictly in retrieved literature packets\n      ▼\n  [Stage 3: Atomic Diagram Assembly]\n      │  - Map optical concepts to the 143-asset atomic SVG library\n      │  - Bind 3-Zone diagram labels & numeric parameters dynamically\n      ▼\n  [Stage 4: Fact Verification & Self-Correction]\n      │  - Cross-check all numeric values & formulas back against sources\n      │  - On threshold failure, return structured critique to Stage 2\n      ▼\n  [Stage 5: Multi-Channel Rendering & Print Export]\n",[83,132,130],{"__ignoreMap":85},[134,135,137],"h3",{"id":136},"_1-planning-retrieval-agent","1) Planning & Retrieval Agent",[15,139,140],{},"Given a topic (e.g., \"Scheimpflug principle in large-format camera movements\"), this stage generates a structured outline and compiles a per-section context packet of verified equations and physical laws from ChromaDB.",[134,142,144],{"id":143},"_2-style-rag-drafting-agent","2) Style-RAG Drafting Agent",[15,146,147],{},"To preserve authentic instructional prose, the drafter pairs factual citations with stylistic exemplars retrieved from curated past columns—maintaining consistent problem framing, practical set analogies, and clear conceptual synthesis.",[134,149,151],{"id":150},"_3-atomic-svg-mapping-agent","3) Atomic SVG Mapping Agent",[15,153,154],{},"This node queries the 143-asset standardized optical and lighting SVG library to match each section with the right ray diagram, lighting plan, or shutter-curtain timing plate, injecting live numeric annotations programmatically.",[134,156,158],{"id":157},"_4-fact-audit-self-correction-loop","4) Fact Audit & Self-Correction Loop",[15,160,161],{},"Every numerical claim (f-stops, shutter speeds, chemical dilutions) and quoted principle is verified backward against source chunks. Any discrepancy triggers a structured audit report routed back to Stage 2 for automated revision before rendering proceeds.",[34,163],{},[37,165,167],{"id":166},"_4-multimodal-synthesis-on-device-vision-privacy","4. Multimodal Synthesis & On-Device Vision Privacy",[15,169,170],{},"Once prose and citations pass verification, the rendering subsystem assembles channel-ready visual assets:",[87,172,173,179,185],{},[48,174,175,178],{},[19,176,177],{},"Satori Dynamic SVG Engine",": Using JSX/CSS layout rules via Satori, the pipeline synthesizes 3-Zone instructional diagrams optimized for both light and darkroom themes.",[48,180,181,184],{},[19,182,183],{},"On-Device YuNet Portrait Privacy",": Whenever practice photographs contain identifiable people, a lightweight local YuNet neural network runs on local NPU hardware without cloud vision calls, detecting face landmarks and applying Gaussian blur automatically to protect portrait rights.",[48,186,187,190],{},[19,188,189],{},"Playwright Rasterization Pipeline",": Responsive long-form web graphics and 1:1 social carousel cards are rendered with verified subpixel typography and exported as lossless web assets.",[34,192],{},[37,194,196],{"id":195},"_5-a4a5-paged-media-print-css-automation","5. A4/A5 Paged Media Print CSS Automation",[15,198,199],{},"To turn digital manuscripts directly into physical classroom handouts, the pipeline embeds a W3C Paged Media print stylesheet:",[87,201,202,212,218],{},[48,203,204,211],{},[19,205,206,207,210],{},"Page-Break Guards (",[83,208,209],{},"break-inside: avoid",")",": Prevents tables, code listings, and optical diagrams from splitting awkwardly across physical page boundaries.",[48,213,214,217],{},[19,215,216],{},"Hairline Print Grid",": Applies crisp 1px rules and 300 DPI-calibrated font metrics tuned against ink spread on standard office and commercial press stocks.",[48,219,220,223],{},[19,221,222],{},"Single Source of Truth",": One verified Markdown manuscript renders simultaneously into a web article, social carousel, and print-ready PDF with zero content drift.",[34,225],{},[37,227,229],{"id":228},"_6-engineering-outcomes","6. Engineering Outcomes",[87,231,232,238,244],{},[48,233,234,237],{},[19,235,236],{},"99% Fact-Verification Pass Rate",": Literature-grounded retrieval combined with reverse-citation auditing virtually eliminated optical formula and numeric hallucinations.",[48,239,240,243],{},[19,241,242],{},"85% Production Lead-Time Reduction",": Compressed an average 6-hour workflow—research, drafting, diagramming, and print layout—into an ~20-minute agent-assisted review cycle.",[48,245,246,249],{},[19,247,248],{},"Complete Data Privacy",": Local vector indexing and on-device portrait blurring ensure no unpublished instructional material or student workshop imagery ever traverses external networks.",{"title":85,"searchDepth":251,"depth":251,"links":252},2,[253,254,255,262,263,264],{"id":39,"depth":251,"text":40},{"id":70,"depth":251,"text":71},{"id":122,"depth":251,"text":123,"children":256},[257,259,260,261],{"id":136,"depth":258,"text":137},3,{"id":143,"depth":258,"text":144},{"id":150,"depth":258,"text":151},{"id":157,"depth":258,"text":158},{"id":166,"depth":251,"text":167},{"id":195,"depth":251,"text":196},{"id":228,"depth":251,"text":229},"/images/content-images/projects/multi-agent-editorial-rag/multi-agent-editorial-rag-cover.jpg","Domain literature RAG and multi-agent editorial pipeline architecture diagram","2026-05-18","An on-premise editorial automation pipeline combining a photography literature vector database with a role-separated multi-agent DAG to produce columns, optical diagrams, and print-ready A4 handouts at consistent academic quality.","RAG Pipeline Architect · Multi-Agent Verification Design","On-premise literature RAG & multi-agent DAG pipeline automating photography columns, optical diagrams, and A4 handouts.","md",true,{},4,"/en/projects/multi-agent-editorial-rag","2025.12 — Active R&D","active-rnd",{"title":5,"description":268},[280,283,286,289,292,295],{"label":281,"value":282},"Knowledge Base","Curated photography science literature indexed in local ChromaDB",{"label":284,"value":285},"Agent Topology","Role-separated DAG: Plan · Draft · Diagram Assembly · Fact Audit",{"label":287,"value":288},"Multimodal Rendering","Satori dynamic SVG synthesis & Playwright lossless rasterization",{"label":290,"value":291},"Output Channels","Web editorial · Instagram carousel cards · A4 print handouts",{"label":293,"value":294},"Portrait Privacy","On-device YuNet face landmark detection & Gaussian blur",{"label":296,"value":297},"Quality Assurance","Hallucination filter & reverse-citation factual verification loop","published","en/projects/multi-agent-editorial-rag","An on-premise RAG and multi-agent pipeline unifying photography literature retrieval, optical diagram synthesis, and A4 print handout production",[302,303,304,305,306,307],"AI-RND","RAG","Multi-Agent","ChromaDB","Python","Editorial",[306,305,309,310,311,312],"Multi-Agent DAG","Satori","Playwright","Print CSS (A4/A5)","ai-rnd","qREPyFxkjXQnpGfCmLp7FPDWHnNYypOUYeHCQMEmqnA",[],"/projects/multi-agent-editorial-rag",1796290674051]