An advanced translation system that uses multiple AI agents to provide high-quality, context-aware translations across various domains. This virtual translation company leverages specialized AI agents to deliver professional translation services.
This project was inspired by Andrew Ng's Translation Agent, which demonstrates the power of agentic workflows in machine translation. I am grateful to Andrew Ng and his collaborators for their pioneering work in this field.
-
Clone the Repository
git clone https://github.com/Max-Lee-explore/agentic-ai-translation-company.git cd agentic-ai-translation-company -
Install Backend Dependencies
cd backend # Create a virtual environment (recommended) python -m venv venv # Activate virtual environment # On Windows: venv\Scripts\activate # On macOS/Linux: source venv/bin/activate # Install Python dependencies pip install -r requirements.txt cd ..
-
Install Frontend Dependencies
cd frontend npm install cd ..
-
Start the Application
Open two separate terminal windows:
Terminal 1 - Backend Server:
cd backend source venv/bin/activate # On Windows: venv\Scripts\activate uvicorn main:app --reload
✓ Backend API will run at http://localhost:8000
Terminal 2 - Frontend Server:
cd frontend npm run dev✓ Frontend will run at http://localhost:5173
-
Configure and Use
- Open http://localhost:5173 in your browser
- You'll see a modern interface with light/dark mode toggle
- In the Configuration section, enter:
- API Key: Get from OpenAI, Anthropic, Google AI, OpenRouter, or xAI
- AI Provider: Select your provider (OpenRouter, OpenAI, Anthropic, Google, xAI)
- Model: Choose a model from the dropdown or enter a custom model ID
- (Optional) Enable Advanced Mode for individual temperature controls per translator type
- Upload your file, select languages, and start translating!
-
Manager Agent (Temperature: 0.7)
- Analyzes content and selects appropriate translator
- Coordinates the translation pipeline
- Provides detailed reasoning for decisions
- Sets specific guidelines for each translation
- Ensures quality and consistency across translations
- Manages terminology and style guidelines
- Handles complex translation requirements
- Makes intelligent decisions about translation approach
-
Literary Translator (Temperature: 0.8)
- Preserves artistic and emotional qualities
- Maintains metaphors and cultural references
- Ensures natural flow in target language
-
Legal Translator (Temperature: 0.65)
- Ensures precise legal terminology
- Maintains formal and professional tone
- Preserves exact meaning of legal concepts
-
News Translator (Temperature: 0.7)
- Maintains journalistic style and accuracy
- Preserves news value and immediacy
- Adapts cultural references appropriately
-
Academic Translator (Temperature: 0.7)
- Maintains academic rigor and precision
- Preserves technical terminology
- Ensures consistency in academic writing
-
Technical Translator (Temperature: 0.65)
- Maintains technical accuracy
- Preserves technical specifications
- Ensures clarity of instructions
-
Medical Translator (Temperature: 0.6)
- Maintains medical terminology accuracy
- Ensures patient safety
- Preserves clinical precision
-
Marketing Translator (Temperature: 0.8)
- Maintains brand voice and impact
- Adapts content for cultural markets
- Preserves marketing effectiveness
-
Business Translator (Temperature: 0.7)
- Maintains professional tone
- Preserves business terminology
- Ensures cultural appropriateness
-
Master Translator (Temperature: 0.7)
- Adapts to specific requirements
- Handles complex translation needs
- Provides flexible translation approach
-
Initial Translation
- Uses specialized translator based on content type
- Applies domain-specific guidelines
- Maintains context and style
-
Reflection
- Analyzes translation quality
- Identifies potential improvements
- Considers cultural context
-
Improvement
- Implements suggested improvements
- Enhances translation quality
- Maintains consistency
-
Terminology Check
- Verifies specialized terminology
- Ensures consistency
- Applies terminology guidelines
- "Help me to decide" Option
- Analyzes text content automatically
- Selects appropriate translator
- Provides detailed reasoning
- Sets specific guidelines
-
Input Formats
- PDF (.pdf)
- Microsoft Word (.docx)
- Microsoft PowerPoint (.pptx)
- JSON (.json)
- HTML (.html)
- Plain Text (.txt, .md)
-
Terminology List Formats
- CSV (.csv)
- JSON (.json)
- Excel (.xlsx, .xls)
- Text (.txt)
-
Select Translation Type
- Choose from specialized translators
- Use "Help me to decide" for automatic selection
- Provide brief for specific requirements
-
Upload Files
- Upload document to translate
- Optionally upload terminology list
- Select source and target languages
-
Review Results
- Get translated document
- View translation details
- Check manager's reasoning
- Specialized Translators: Domain-specific translation agents
- Manager Agent: Decision-making and analysis
- Translation Pipeline: Multi-step quality assurance
- Terminology Handler: Consistent terminology management
- Creative Content (0.8): Literary, Marketing
- Balanced (0.7): News, Academic, Business
- Technical (0.65): Technical, Legal
- Precision (0.6): Medical
- Python 3.8+
- Required packages (see requirements.txt)
- API key from AI provider
agentic-ai-translation-company/
├── app.py # Main application file with Gradio interface
├── manager_agent.py # Manager agent implementation
├── specialized_translators.py # All specialized translator implementations
├── translation_agents.py # Translation pipeline and agent coordination
├── file_handlers.py # File processing and management
├── terminology_handler.py # Terminology management and validation
├── utils.py # Utility functions and helpers
├── requirements.txt # Project dependencies
├── .env.example # Example environment configuration
├── LICENSE # Project license
└── README.md # Project documentation
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under a custom non-commercial license that requires attribution. See the LICENSE file for details.
Key License Terms:
- Non-commercial use only
- Attribution required
- No commercial distribution
- Modifications must be marked
- Contact author for commercial licensing
For commercial use or licensing inquiries, please contact the author.
- Max Lee
- GitHub: Max-Lee-explore
- Project: Agentic AI Translation Company

