assistance-engine/docs/ADR
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
..
ADR-0001-grpc-primary-interface.md feat: editor context injection (PRD-0002) + repository governance 2026-03-20 19:43:48 -07:00
ADR-0002-two-phase-streaming.md feat: editor context injection (PRD-0002) + repository governance 2026-03-20 19:43:48 -07:00
ADR-0003-hybrid-retrieval-rrf.md feat: editor context injection (PRD-0002) + repository governance 2026-03-20 19:43:48 -07:00
ADR-0004-claude-eval-judge.md feat: editor context injection (PRD-0002) + repository governance 2026-03-20 19:43:48 -07:00
ADR-0005-embedding-model-selection.md Add BEIR analysis notebooks and evaluation pipeline for embedding models 2026-03-26 16:53:20 +01:00
ADR-0006-reward-algorithm-dataset-synthesis.md feat(dataset): add ADR-0006 and scaffold reward algorithm pipeline 2026-03-25 22:19:19 -07:00
ADR-0007-mandatory-syntactic-validation-layer.md [DOC] ADR0007 and RP0001 2026-04-07 00:25:13 -07:00
ADR-0008-adaptive-query-routing-intent-history.md [FEATURE] Adaptive query routing: PLATFORM type, model specialization, intent history classifier 2026-04-09 19:47:27 -07:00