SShortSingh.
Back to feed

How LectuLibre Built a Chunking Pipeline to Translate Full Books Using AI

0
·5 views

Startup LectuLibre developed an AI-powered book translation pipeline after discovering that sending entire books to large language models in one request was too costly, unreliable, and prone to quality degradation over long contexts. The team split books into overlapping token-aware chunks of roughly 3,000 tokens each, using tiktoken for precise token counting after finding LangChain's character-based splitter caused chunks to exceed model limits. Each chunk is translated using Anthropic's Claude 3.5 Sonnet alongside a dynamic context buffer containing a running glossary of character names and terms, plus a rolling summary of previously translated chapters stored in PostgreSQL. After translating each chunk, the pipeline extracts new terminology and generates a short summary to carry forward into the next chunk, preserving stylistic and narrative consistency throughout. For a typical 120,000-word novel, this approach produces around 60 chunks, with the assembled output forming a complete, context-coherent translated book.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

pictostl Turns Photos Into 3D-Printable Meshes via Browser Tool

pictostl is a browser-based tool that converts JPG, PNG, or WebP images into 3D meshes suitable for printing and modeling workflows. Users can upload images up to 10 MB, optionally add multiple views, and select from Basic, Pro, or Ultra quality tiers. The tool exports meshes in STL, GLB, OBJ, and PLY formats, with an interactive preview and adjustable dimensions before download. New verified accounts receive two free credits, covering one Basic generation and STL export, while additional generations require purchased credits. Since unseen surfaces are algorithmically inferred, the developers recommend reviewing all generated meshes carefully before sending them to a printer.

0
ProgrammingDEV Community ·

Silent Cron Job Failure Left Production Monitor Dead for Five Days Undetected

A developer running WhatsApp automation for businesses discovered that a watchdog cron job, designed to alert when messaging sessions dropped silently, had never executed once despite appearing correctly configured. The crontab stored the job as expected, and a separate log file showed recent successful entries — but those entries turned out to be from manual test runs on installation day, not scheduled executions. The root cause was a sudo permission or output-redirect issue causing the cron job to emit errors on stderr every ten minutes, which cron attempted to email but discarded silently due to no mail server being installed. A key diagnostic clue was the syslog message 'No MTA installed, discarding output' appearing alongside every CMD entry, indicating the job was running but failing to capture output as intended. The incident highlights that a populated log file and a visible crontab entry do not confirm a scheduled job is actually executing successfully.

0
ProgrammingHacker News ·

Dropbox Updates Terms of Service Effective January 1, 2027

Dropbox has published revised terms of service set to take effect on January 1, 2027. The updated terms are accessible on the company's official website for users to review. The announcement drew attention on Hacker News, where users began discussing the implications of the changes. Such updates typically outline user rights, data handling practices, and platform usage rules. Dropbox users are advised to review the new terms ahead of the effective date.

0
ProgrammingDEV Community ·

Union Alpha AI Model Revealed as Pareto by unbiased.ai, Free Access Ends Early

A mysterious AI model called Union Alpha, released anonymously on OpenRouter on September 16, 2026, was identified the following day as Pareto, a blended AI model developed by unbiased.ai. The model was initially offered free for approximately one week, but the free tier was shut down ahead of schedule on September 17 after demand surged to one billion tokens per minute within a single day. AWS tripled compute capacity overnight but still could not keep up with the load, prompting the company to switch to paid access. Pareto is described as a blended model that runs multiple AI models in parallel for every request and synthesizes a single response, distinguishing it from a standard model router. The company's official launch is planned for October 10, 2026, and current pricing for the latest version, Pareto 26.9, stands at $2.50 per million input tokens and $7.50 per million output tokens.