Repository navigation
Conversation
…the documents Every prompt is written in English, so models answered in English even for a French resume or posting. Add a language-agnostic rule to the chat, resume review, job match, automation match and cover letter prompts, plus a one-line reminder beside the documents in each user prompt, which small local models (qwen3.5:9b) need. The SCORES line and "##" headings stay English because the parsers key on them. Add an evals/multilingual suite (French resume and posting) with language-neutral assertions, and an eval:multilingual script. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Every system prompt is written in English, so models answer in English even when the resume and job
posting are in another language (seen with French documents). This adds a language-agnostic rule to the
generating prompts so the output follows the language of the documents, and the chat reply follows the
language of the user's message. Nothing is specific to one language.
Changes
src/lib/ai/prompts/language.tswith the rules and short reminders.alone was not enough for a small local model (qwen3.5:9b still answered in English); the reminder next
to the document fixed it.
languagesection: reply in the user's most recent message's language, andkeep tool arguments in the language the user supplied.
SCORES:line and the##section headings stay in English, becausejobMatch/parse.ts,resumeReview/parse.tsandcoverLetter/matchGuidance.tsparse them.evals/multilingual(French resume and posting) with language-neutral assertions,plus an
eval:multilingualscript.Related Issues
Testing
npm run lintandtsc --noEmitare clean.devin my environment(jsdom/
localStoragesetup), unrelated to this change.npm run eval:multilingualagainst localqwen3.5:9b: review, match and both chat cases pass. AFrench cover letter generated with the app's exact prompt came back in French with a localized
salutation and sign-off. I could not grade the cover-letter
llm-rubriccase because I had no DeepSeekkey.
on the same model.
Notes
This assumes the resume and posting are in the same language. Mixed-language input uses the language
most of the text is written in.