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

Detrix MCP Server Adds Runtime Debugging to AI Coding Agents
Detrix is a free, open-source MCP server that enables MCP-compatible agents to observe live variables in running code without restarts or code changes. It supports Python, Go, and Rust applications running locally or in Docker.

Keyoku Plugin Replaces OpenClaw's Static Heartbeat with Memory-Driven Autonomy
Keyoku is a free OpenClaw plugin that changes the agent's heartbeat from reading a static HEARTBEAT.md file to scanning the agent's actual memory store for stalled work, dropped commitments, conflicting information, and quiet relationships. It uses a local Go engine with SQLite + HNSW and offers three autonomy levels: observe, suggest, and act.

Claudraband: Terminal Wrapper for Persistent Claude Code Sessions
Claudraband wraps the official Claude Code TUI in a controlled terminal to enable resumable workflows, remote session control via HTTP daemon, and ACP server integration for alternative frontends like Zed or Toad. It requires Node.js/Bun, authenticated Claude Code, and tmux for first-class local workflows.

LystBot: An MCP Server for Claude to Manage Lists and Tasks
LystBot is a list management app with a native MCP server that allows Claude to directly interact with grocery lists, todos, and packing lists. Built primarily with Claude Code, it includes a Flutter mobile app, REST API, CLI, and open-source Node.js MCP server.