Skip to content

Improve LLM prompt by providing clearer instructions and additional context #4030

@flodolo

Description

@flodolo

I'm currently experimenting with a variant of the existing prompt.

Besides a general rewrite, for example to try and solve a problem with missing closing periods, I think there's value in passing the comment and string ID to the LLM to provide additional context.

Other things that might be worth investigating in the future, but not as part of this iteration:

  • Test gpt5-mini instead of gpt4.1, across a few languages.
  • Store more context, e.g. some info about the project (additional field in the model), and some structured info about files. That could be interesting for Firefox, where specific files (e.g. asrouter.ftl) are more marketing oriented, and might benefit from a looser translation.

Metadata

Metadata

Assignees

Labels

LLMP2We want to ship it soon, possibly in the current quarterdays

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions