Repository navigation
Taalniveaukeuze in de UI + B1 als standaard (keert #12 om) - #53
Merged
Merged
Conversation
#52) - index.html: balk 'Antwoorden: Kort/Uitgebreid' direct onder de header (variant A uit prototype/taalniveau-gui), open bij start, klapt in bij eerste bericht; keuze persistent in localStorage (wtchat_taalniveau), fallback stilzwijgend B1; language_level gaat mee in elke POST /chat - main.py: ChatRequest.language_level (ongeldig/leeg -> B1, nooit 400) - context.py: contextregel 'Voor deze gebruiker is vastgesteld taalniveau: B1|B2' als eerste bullet bij elk bericht (default B1) - tests: test_context.py, test_app.py uitgebreid; nieuwe test_taalniveau.cjs (default B1, schakelen, localStorage, fold, request-veld); chat_dom.cjs met attribute-opslag + localStorage-mock Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <[email protected]>
Keert #12 vervroegd om: GLOSSARY (sectie Taal), Tone_of_voice §2/§2.1/§7/§8, system-prompt §12 en scripts/prompts/_shared.md flippen naar B1-standaard / B2 op verzoek via de app-keuze; bronregel ongewijzigd (B1 geen Bron-regel, B2 altijd). Prompts gedeployed via create_agents.py --apply (pre-productie). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <[email protected]>
- evalset.yaml: alle 28 bestaande entries expliciet taalniveau: B2, plus 4 nieuwe B1-entries (korte antwoorden, geen Bron-regel verwacht) - run_eval.py: taalniveau uit entry naar context.build_context_lines (default B1); check_entry: bron-match alleen bij B2, bij B1 juist geen Bron-regel toegestaan; taalniveau in het resultaat - tests/test_run_eval.py: entry()-helper default B2, schema-check taalniveau, nieuwe TaalniveauTests Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <[email protected]>
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.
Closes #52
Summary
Wielie antwoordt standaard op taalniveau B1 (kort, begrijpelijk) met een zichtbare keuze voor Uitgebreid (B2) in de app. Keert #12 vervroegd om (grill-besluit, zie issue #52). Prototype: branch
prototype/taalniveau-gui(variant A gewonnen).app/static/index.html: details-balk onder de header, open bij start, klapt in bij eerste bericht (chat:messages-rendered); schakelen geldt vanaf het volgende bericht; CRLF-diff puur additiefapp/main.py+app/context.py:language_levelveld (ongeldig/leeg → B1, nooit 400); contextregel als eerste bullet bij élk berichtscripts/prompts/_shared.md+ docs (GLOSSARY, Tone_of_voice §2/§2.1/§7/§8, system-prompt §12, eval-set reference): B1-standaard, in-chat keuzevraag vervalt; prompts gedeployed viacreate_agents.py --apply(pre-productie)eval/:taalniveauper evalset-entry (28 bestaande = B2, 4 nieuwe B1); bron-check alleen bij B2, bij B1 juist géén Bron-regel toegestaanuser_preferencesblijft post-MVP)Evidence
pytest tests app/tests→ 168 passed, 52 subtests; node → 30 pass, 0 fail (incl. nieuwetest_taalniveau.cjs: default B1, schakelen naar B2 + localStorage, kapotte storage → B1, fold bij 1e bericht,language_levelin /chat-body)create_agents.pydry-run → 5 agents zouden updaten;--apply→ 5 agents updated (knwu/archief/regio/club/router)taalniveau: B2, 4× B1)Merge Danger
Door: two-way (reverteerbare commits; prompts live in Mistral Studio maar
scripts/prompts/+create_agents.py --applyreproduceren ze)Blast Radius: app + prompts + docs + eval. Let op: de UI-copy gebruikt
Wheely(huidige naam op main) — na merge van #35 (Wielie-rename) moet de string in de balk mee. Monitoring of B1 volstaat loopt via de feedbackrapporten (B2-antwoorden herkenbaar aan de Bron-regel).