83d516afa1
FastAPI gateway with A/B/C lane orchestration, LiteLLM proxy config, Swarm stack (postgres, redis, VPN off-by-default), deploy/smoke/audit scripts.
78 lines
2.0 KiB
YAML
78 lines
2.0 KiB
YAML
# Tier classification — single source for gateway + LiteLLM keyword rules
|
|
|
|
gateway:
|
|
simple_patterns:
|
|
- "^(привет|hello|hi|hey|спасибо|thanks|что такое|what is|define)\\b"
|
|
complex_keywords:
|
|
- рефакторинг
|
|
- refactor
|
|
- архитектур
|
|
- architecture
|
|
- спроектируй
|
|
- design system
|
|
- microservice
|
|
- distributed
|
|
- migration plan
|
|
- deep refactor
|
|
reasoning_keywords:
|
|
- step by step
|
|
- prove
|
|
- analyze deeply
|
|
- think through
|
|
- reasoning
|
|
medium_ops_keywords:
|
|
- bash
|
|
- docker
|
|
- swarm
|
|
- ci/cd
|
|
- gitea
|
|
- rebar
|
|
- erlang
|
|
- devops
|
|
- kubectl
|
|
- terraform
|
|
- playwright
|
|
- npm
|
|
- wsl
|
|
- litellm
|
|
- novita
|
|
- traefik
|
|
- mnesia
|
|
ocr_keywords:
|
|
- ocr
|
|
- прочитай текст
|
|
- extract text
|
|
- распознай текст
|
|
- read text from
|
|
escalation_keywords:
|
|
- не подходит
|
|
- лучше
|
|
- качественнее
|
|
- retry
|
|
- попробуй ещё
|
|
word_thresholds:
|
|
simple_max_words: 12
|
|
simple_question_max_words: 25
|
|
complex_min_words: 400
|
|
medium_code_min_lines: 200
|
|
confidence:
|
|
low_threshold: 0.6
|
|
|
|
litellm:
|
|
keyword_tier_rules:
|
|
- keywords: ["привет", "hello", "hi", "thanks", "спасибо", "что такое", "what is", "define"]
|
|
tier: SIMPLE
|
|
- keywords: ["bash", "docker", "swarm", "ci/cd", "gitea", "rebar", "erlang", "devops", "kubectl", "terraform", "playwright", "npm", "wsl"]
|
|
tier: MEDIUM
|
|
- keywords: ["рефакторинг", "refactor", "архитектура", "architecture", "спроектируй", "design system", "microservice", "distributed", "migration plan"]
|
|
tier: COMPLEX
|
|
- keywords: ["step by step", "reasoning", "prove", "analyze deeply", "think through"]
|
|
tier: REASONING
|
|
custom_technical_keywords:
|
|
- erlang
|
|
- rebar3
|
|
- traefik
|
|
- mnesia
|
|
- litellm
|
|
- novita
|