This pull request improves the translation pipeline, which was introduced by #460. Now the document generation works pretty well with gpt-4o model.