← all repositories

andrewyng/translation-agent

Python implementation of an agentic workflow for machine translation using LLM-based reflection to improve translation quality.

5.8k stars Python Language ModelsAgents
translation-agent
Velocity · 7d
+7.6
★ / day
Trend
steady
star history

This repository implements a reflection agentic workflow for machine translation. The system uses an LLM to perform initial translation, then applies a reflection step where the LLM generates constructive suggestions for improvement, which are then incorporated to refine the output. It supports customizing translation style, handling of idioms and technical terms via prompt engineering and glossaries, and adapting to regional language variants.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.