NC

NovaChat ES/CA

LQA & LLM Eval Suite

4 models · 6 runs · Live Baseline/Grounded AI Sandbox + Live Python LQA Checker

Core Empirical Finding · ES/CA Localization & LLM Evaluation

Grounding fixes facts. It doesn't fix language.

Injecting an authoritative UI map, bilingual glossary, and refund policy into the system prompt eliminated all Critical factual hallucinations in this test — dropping from 8 in the ungrounded Flash-Lite baseline to 0 across all 5 grounded runs on 4 models (Gemini 3.5 Flash-Lite ×2, Gemini 3.8 Flash, NVIDIA Nemotron 3 Ultra, and Baidu ERNIE 5.5 Flash). Yet Spanish-to-Catalan interference, pre-2016 IEC diacritics, and Catalan grammar defects kept slipping past grounded prompts.

Critical Hallucinations
80
Flash-Lite baseline vs. 5 grounded runs
Dataset Provenance · Four Data Collections with Distinct Purposes
1. MQM Inventory (28): Audit logged in defect_log.csv: 13 UI strings, 8 system messages, 4 AI responses & 3 onboarding items (defines 3 Critical archetypes: D-002, D-005, D-006).
2. Model Evals (72): Real LLM outputs across 12 Promptfoo cases × 6 runs (8 Critical occurrences in Flash-Lite baseline → 0 in all 5 grounded runs).
3. Judge Calibration (20): 6 mock fixtures + 8 recorded Gemini replies + 6 adversarial traps used to calibrate the refund-policy judge (EC-005/EC-006) only — not the optional live semantic/grammar check (no held-out set yet).
4. Checker Batch (20): Synthetic UI regression sample (sample_strings.csv: 12 seeded defective strings with 14 issues + 8 clean controls).

Model Performance: 4 Models Across 6 Runs (n = 12 cases/run)

Evaluated on the same 12 cases: within-model baseline vs. grounded comparison is available for Gemini 3.5 Flash-Lite (1 ungrounded baseline + 2 grounded runs using the same prompt at temperature 0 to check run-to-run consistency); Gemini 3.8 Flash, Nemotron 3 Ultra, and ERNIE 5.5 Flash ran grounded only. Click any run to inspect its 12 replies.

PASS QUERY: accurate, but extrapolated a policy rule beyond the source text — escalated to Product Owner (PO) FAIL
Agreement & 12/12 context: 70/72 compares automated suite vs. human verdicts on FAIL vs. non-FAIL (counting the 6 auto-PASS / human-QUERY PO escalations as non-fail; 64/66 on decisive pass/fail verdicts excluding QUERY). Both disagreements were auto-PASS / human-FAIL Catalan grammar errors. Gemini 3.8 Flash and ERNIE 5.5 Flash scored 12/12 on a single grounded run—not a claim of zero errors under broader adversarial load.

3-Layer QA Architecture (28-Defect MQM Split)

Primary detection layer assigned to each of the 28 MQM audit defects (mutually exclusive: Layer 1 rules → Layer 2 semantic evals → Layer 3 human review).

Layer 1 · Deterministic Rules (Python lqa_checks.py)17/28 (61%)

Mechanical checks & terminology: placeholders, glossary, Castilianisms, gendered greetings, punctuation, character limits.

Layer 2 · Semantic Evaluation (Promptfoo + LLM Judge)4/28 (14%)

Policy compliance & grounding under baseline/grounded and adversarial test conditions (captures all 3 Critical archetypes D-002, D-005, D-006 + CA code-switching D-021).

Layer 3 · Bilingual Human Linguistic Review7/28 (25%)

Subtle grammar, naturalness, active voice, register drift, UX clarity, and Product Owner policy escalations (QUERY).

Defects by MQM-Adapted Category (n = 28)

Cultural / dialectal appropriateness5
Fluency5
Accuracy4
Terminology4
Tone / brand voice3
Hallucination / factual risk2
Locale conventions2
UX clarity2
Safety / policy consistency1
Where Automation Still Fails

Auto–human agreement was 70/72 on FAIL vs. non-FAIL (64/66 excluding 6 PO QUERY escalations). Both misses were auto-PASS / human-FAIL Catalan grammar errors: se'te cobrarà → se't cobrarà (broken clitic) and escrivim → escriu (1st-person plural instead of imperative).

Why Cross-Vendor Testing Matters

Running NVIDIA Nemotron 3 Ultra exposed suite blind spots four Gemini runs never triggered: narrow no-break spaces (U+202F) inside 14 días, the Castilianism reembolsen, and a real-world policy loophole ("(si procede)") caught by the calibrated LLM judge.

Why 12 Cases? Scope & Authorship

This is a reproducible method demonstration, not a market benchmark. I designed the MQM audit, 12 ES/CA cases, traps, glossary, judge rubric, and Python rules, and audited 100% of the 72 replies; AI coding assistance helped accelerate the Next.js web interface scaffolding.