Commit Graph

6 Commits

Author SHA1 Message Date
rafa-ruiz 81125eae2a ADR0010 2026-04-11 12:54:46 -07:00
rafa-ruiz c955f69ad8 [DOC] ADR-0008: refactor — separate permanent decisions from tactical debt
- Retitle to reflect actual scope: taxonomy, contract, classifier strategy
- Split Decision section into permanent (taxonomy, model assignment) vs
  tactical [BOOTSTRAP] (LLM classifier)
- Mark LLM classifier explicitly as interim implementation with pointer
  to Future Path
- Clarify that Routing Contract is implementation-independent
- Consolidate prompt engineering rules as symptoms of architectural mismatch

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 20:02:10 -07:00
rafa-ruiz 273049b705 [DOC] ADR-0008: add Future Path — discriminative classifier pipeline
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 19:59:34 -07:00
rafa-ruiz ce2306c4e5 [DOC] ADR-0008 RC-03: add prior probability rationale
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 19:56:28 -07:00
rafa-ruiz 4b9e1ff4ca [DOC] ADR-0008: add formal routing contract (RC-01 to RC-06)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 19:54:06 -07:00
rafa-ruiz d7baccd8f0 [FEATURE] Adaptive query routing: PLATFORM type, model specialization, intent history classifier
- Add PLATFORM query type that bypasses RAG and uses a lighter model
- Introduce OLLAMA_MODEL_NAME_CONVERSATIONAL env var to route CONVERSATIONAL
  and PLATFORM queries to a separate (smaller) Ollama model
- Replace raw message history in classifier with compact intent history
  (classify_history) to eliminate anchoring bias in small models
- Add <history_rule> and <platform_priority_rule> to classifier prompt so
  the model evaluates each message independently while still resolving
  ambiguous references from prior turns
- Add fast-path detection for known platform-injected prompt prefixes
- Add PLATFORM_PROMPT for account/metrics/usage responses
- Persist classify_history in classify_history_store alongside session_store
- Document decisions in ADR-0008

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 19:47:27 -07:00