feat: language-aware match results + full controller documentation #13

Merged
gelu merged 1 commits from main into staging 2026-05-24 14:08:41 +00:00
Owner

Summary

  • Match results now respect the active UI language — LLM returns summary, strengths, gaps, and recommendations in Romanian or English based on the user's language selection
  • Language added to the match result cache key so Romanian and English results are stored independently (EF migration with default 'en' for existing rows)
  • Complete XML doc + Swagger annotations added to all controller endpoints across api, cv-matcher-api, and rag-api
  • GET /api/health/version endpoint added to HealthController — displays deployed build version in the web UI footer
  • Explanatory inline comments removed from FileDownloadController per project conventions

Migration

AddLanguageToCvMatchResult — adds Language nvarchar(max) DEFAULT 'en' to cvMatcher.Results. Applied automatically on startup.

Test plan

  • Switch UI to Romanian, run a match — result text (summary, strengths, gaps) appears in Romanian
  • Switch UI to English, run same CV+job — result appears in English (separate cache entry)
  • Visit /api/health/version — returns {"version":"1.0.0-build.…"}
  • Version badge visible in footer on both pages after CI build
  • Swagger UI shows populated descriptions for all endpoints

🤖 Generated with Claude Code

## Summary - Match results now respect the active UI language — LLM returns summary, strengths, gaps, and recommendations in Romanian or English based on the user's language selection - `Language` added to the match result cache key so Romanian and English results are stored independently (EF migration with default `'en'` for existing rows) - Complete XML doc + Swagger annotations added to all controller endpoints across `api`, `cv-matcher-api`, and `rag-api` - `GET /api/health/version` endpoint added to `HealthController` — displays deployed build version in the web UI footer - Explanatory inline comments removed from `FileDownloadController` per project conventions ## Migration `AddLanguageToCvMatchResult` — adds `Language nvarchar(max) DEFAULT 'en'` to `cvMatcher.Results`. Applied automatically on startup. ## Test plan - [ ] Switch UI to Romanian, run a match — result text (summary, strengths, gaps) appears in Romanian - [ ] Switch UI to English, run same CV+job — result appears in English (separate cache entry) - [ ] Visit `/api/health/version` — returns `{"version":"1.0.0-build.…"}` - [ ] Version badge visible in footer on both pages after CI build - [ ] Swagger UI shows populated descriptions for all endpoints 🤖 Generated with [Claude Code](https://claude.com/claude-code)
gelu added 1 commit 2026-05-24 14:05:43 +00:00
The frontend sends the active language code (currentLang()) with every match
request. CvMatcherService injects a language instruction into the system prompt
so the LLM returns summary, strengths, gaps, recommendations, and evidence in
the correct language. The match result cache (CvMatchResults) now includes
Language as part of the lookup key so Romanian and English results are stored
and retrieved independently. Existing cached rows default to 'en'.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
gelu merged commit eee3215302 into staging 2026-05-24 14:08:41 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: AI/myAi#13