Fix sub-question expansion timeout + engine routing for Bedrock advocate
- expandQueries(): truncate seedDescription to 2000 chars (full uploads were 48K+ tokens, exceeding the 35s timeout with Sonnet); switch to Haiku gateway when Bedrock is active (fast + adequate for sub-Q generation); timeout → 60s - interpretSeed(): same Haiku + 60s fix for English non-advocate path - synthesise(): add explicit azure_mini + Bedrock → Haiku branch so the fast engine actually uses Haiku (~20-40s) instead of falling through to Sonnet (~180s) - advocate.php: relabel azure_mini as "Claude Haiku 4.5 (fast)" with accurate timing; relabel claude_sonnet as "(thorough)" to reflect the distinction Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+3
-3
@@ -52,13 +52,13 @@ require_once __DIR__ . '/includes/layout.php';
|
||||
|
||||
<div class="control-row" id="advEngineControl">
|
||||
<span class="control-label">Engine</span>
|
||||
<label><input type="radio" name="advEngine" value="azure_mini" checked> Azure gpt-4o-mini ★ <small class="control-hint">(~15-45s)</small></label>
|
||||
<label><input type="radio" name="advEngine" value="azure_mini" checked> ☁️ Claude Haiku 4.5 (fast) <small class="control-hint">(~20-50s)</small></label>
|
||||
<label><input type="radio" name="advEngine" value="azure_full"> Azure gpt-4o <small class="control-hint">(best · ~60-180s)</small></label>
|
||||
<label><input type="radio" name="advEngine" value="gpu"> GPU (cuttlefish) <small class="control-hint">(local · ~30-90s)</small></label>
|
||||
<label><input type="radio" name="advEngine" value="dbn_legal_v3"> 🇳🇴⚔️ DBN Legal Agent ★ <small class="control-hint">(dbn-legal-agent-v3 fine-tune · ~20-60s)</small></label>
|
||||
<label><input type="radio" name="advEngine" value="claude_sonnet"> ☁️ Claude Sonnet 4.6 (AWS Bedrock) ★★ <small class="control-hint">(best · ~30-90s)</small></label>
|
||||
<label><input type="radio" name="advEngine" value="claude_sonnet"> ☁️ Claude Sonnet 4.6 (thorough) ★★ <small class="control-hint">(best · ~60-120s)</small></label>
|
||||
</div>
|
||||
<p class="upload-hint">Azure mini finishes fastest. Claude Sonnet 4.6 via AWS Bedrock produces the most thorough advocate brief — superior at multi-party legal reasoning, ECHR precedent weighting, and long-form argumentation. Norwegian specialist v3 is a Qwen2.5 fine-tune trained on barnevernsloven, ECHR, and forvaltningsloven — highest precision for § 4-25, Strand Lobben, and procedural red flags.</p>
|
||||
<p class="upload-hint">Claude Haiku 4.5 is fast and accurate for most cases. Claude Sonnet 4.6 produces the most thorough advocate brief — superior at multi-party legal reasoning, ECHR precedent weighting, and long-form argumentation. Norwegian specialist v3 is a Qwen2.5 fine-tune trained on barnevernsloven, ECHR, and forvaltningsloven — highest precision for § 4-25, Strand Lobben, and procedural red flags.</p>
|
||||
|
||||
<div class="dr-slice-section">
|
||||
<p class="control-label">Corpus slices</p>
|
||||
|
||||
Reference in New Issue
Block a user