Local Book Translation Pipeline Uses Qwen 32B and Mistral 24B with Contextual RAG

A developer has created a fully local, automated book translation pipeline that converts PDF files to ePub format using eight Python scripts. The system addresses common translation issues like context loss and formatting problems through a multi-step workflow.
Workflow Details
The pipeline consists of eight scripts that handle the entire process:
- PDF Extraction: Uses Marker to extract content from PDFs while preserving formatting elements like bold text, chapters, and images
- Text Segmentation: Splits the extracted text into manageable chunks
- Context Creation: Before translation, sends excerpts from throughout the book to Qwen 32B to generate a "Super Bible" - a global glossary containing characters, tone, and atmosphere
- Translation: Qwen 32B translates each text segment while referencing the Super Bible to maintain consistency
- Style Editing: Mistral 24B acts as an editor, reviewing Qwen's translations and rewriting them for perfect literary style
- Assembly: A final script reassembles all translated segments, reinserts images, and uses Pandoc to output a polished ePub file
Automation Features
The system includes a monitoring script that watches a designated folder. Users simply drop a PDF into this folder, and the pipeline automatically processes it. After several hours, the system outputs both the translated ePub and a receipt showing processing time.
The developer notes the results are surprisingly effective, though not 100% perfect, and mentions having several improvement ideas. The entire system runs locally on a personal computer without requiring external services.
📖 Read the full source: r/LocalLLaMA
👀 See Also

Beagle SCM: A Source Code Management System That Stores AST Trees
Beagle is an experimental source code management system that stores abstract syntax trees instead of binary blobs, using a CRDT-ish data format called BASON and backing storage with key-value databases like RocksDB.

Octopoda: Open Source Memory Layer for Local AI Agents
Octopoda is an open source memory layer that gives local AI agents persistent memory between sessions, semantic search, loop detection, and crash recovery. It runs fully offline with a 33MB embedding model and integrates with LangChain, CrewAI, AutoGen, and OpenAI Agents SDK.

AI Agent Session Center: 3D Dashboard for Monitoring Claude Code Sessions
AI Agent Session Center is a real-time dashboard that visualizes Claude Code sessions as 3D robots in a cyberdrome, with animations showing agent status and features including live terminal views, approval alerts, and session resume. It installs via npx with lightweight bash hooks.

Fixing OpenClaw Browser CAPTCHAs with Camoufox and CLI Wrapper
OpenClaw's built-in Chromium browser triggers bot detection through Chrome DevTools Protocol, JavaScript injection artifacts, and hardware fingerprinting inconsistencies. The solution uses Camoufox (a Firefox fork) modified at the C++ level and wrapped in a CLI that returns accessibility-tree snapshots to reduce token usage.