Expand corpus slices to 8: split ECHR/Hague, add Norwegian Courts, Bufdir, DBN Resources
- Replace combined echr_hague slice with echr (Art.8+9, HUDOC, NIM) and hague (INCADAT, cross-border abduction) as separate toggles; echr defaults ON, hague defaults OFF - Add norwegian_courts slice: Domstol (src 5,26) + Rettspraksis.no (src 33, 482 docs) - Add bufdir_guidance slice: Barneombudet (19), Bufdir (20), Statsforvalteren (31) - Add dbn_resources slice: DBN website pages (flashcards, resource directory), defaults OFF - Replace isWebsiteChunk() with slice-aware shouldExcludeChunk(): always strips EU AI Act chunks (EUR-Lex source 7 leaks through when Qdrant runs unconstrained) and DBN website pages unless dbn_resources slice is explicitly ON - Update SLICE_DEFS in advocate.js and deep-research.js to match all 8 slices - Backward compat: echr_hague key in incoming requests fans out to echr+hague Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -8,10 +8,14 @@
|
||||
let lastResult = null;
|
||||
|
||||
const SLICE_DEFS = [
|
||||
{ id: 'family_core', label: 'Family Law Core' },
|
||||
{ id: 'child_welfare', label: 'Child Welfare' },
|
||||
{ id: 'echr_hague', label: 'ECHR and Hague' },
|
||||
{ id: 'broader_legal', label: 'Broader Legal Support' },
|
||||
{ id: 'family_core', label: 'Family Law Core' },
|
||||
{ id: 'child_welfare', label: 'Child Welfare' },
|
||||
{ id: 'echr', label: 'ECHR' },
|
||||
{ id: 'hague', label: 'Hague Convention' },
|
||||
{ id: 'norwegian_courts', label: 'Norwegian Courts' },
|
||||
{ id: 'bufdir_guidance', label: 'Bufdir Guidance' },
|
||||
{ id: 'broader_legal', label: 'Broader Legal Support' },
|
||||
{ id: 'dbn_resources', label: 'DBN Resources' },
|
||||
];
|
||||
|
||||
const STEP_LABELS = [
|
||||
|
||||
@@ -8,10 +8,14 @@
|
||||
let lastResult = null;
|
||||
|
||||
const SLICE_DEFS = [
|
||||
{ id: 'family_core', label: 'Family Law Core' },
|
||||
{ id: 'child_welfare', label: 'Child Welfare' },
|
||||
{ id: 'echr_hague', label: 'ECHR and Hague' },
|
||||
{ id: 'broader_legal', label: 'Broader Legal Support' },
|
||||
{ id: 'family_core', label: 'Family Law Core' },
|
||||
{ id: 'child_welfare', label: 'Child Welfare' },
|
||||
{ id: 'echr', label: 'ECHR' },
|
||||
{ id: 'hague', label: 'Hague Convention' },
|
||||
{ id: 'norwegian_courts', label: 'Norwegian Courts' },
|
||||
{ id: 'bufdir_guidance', label: 'Bufdir Guidance' },
|
||||
{ id: 'broader_legal', label: 'Broader Legal Support' },
|
||||
{ id: 'dbn_resources', label: 'DBN Resources' },
|
||||
];
|
||||
|
||||
const STEP_LABELS = [
|
||||
|
||||
Reference in New Issue
Block a user