fix(curation): refuse a facet value outside the vocabulary, keep those the model proposes #84
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/75-facet-vocabulary"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #75
Behaviour
rejectedValues outside the vocabulary: 'regions': 'east', nothing written, no git workfacet_proposals: { <facet>: [values] }on the draftfacet_proposalsis reserved (cannot be a facet identifier).Checks
Tests: refusal names the value and leaves the remote unchanged; the save removes the proposals; ingestion writes
facet_proposals.yarn test262/262.🤖 Generated with Claude Code
Two commits added after the end-to-end run of 2026-11-29: on a text about a Mediterranean climate, the model answered
climat: tempéré, the closest value of the vocabulary, because the prompt said "Choose only among". No proposal could ever reachfacet_proposals. The prompt now names the vocabulary and asks for the right value when none fits; that value is kept as a proposal.