Files
PTSRaiAgent/config
ElebobaandClaude Opus 5.5 b72af71e66
CI / ruff · pytest (pull_request) Successful in 1m30s
feat(bot): answer treatment questions from the clinical-guideline knowledge base
- menu button «Вопрос о лечении» -> kb.question -> rag.answer (KR quote + source)
  or «уточните у врача»; dose questions get a fixed doctor redirect
- free text in idle that looks like a question (no check-in signals, not a drug
  question) -> knowledge base; no answer -> the usual support phrase
- routing order unchanged: consent/safety first, side effects/quit/alcohol -> check-in,
  own drug -> med_qa (instruction only, SPEC §7 p.5)
- question cues, small talk and texts in config/texts/knowledge.yaml; scrub placeholders
  before "что такое X" no longer hide the definition question

Refs #64

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 11:27:42 +03:00
..

config/

Конфигурация клинической логики (ADR-008). Схемы задаёт зона core, значения утверждает психиатр (clinical).

  • scales/ — шкалы: пункты, варианты, градации, флаги
  • rules.yaml — правила алертов и действий
  • modules.yaml — модули и расписания шкал
  • lexicon/risk_ru.yaml — лексикон риска
  • texts/ — тексты для пациента (кризисный скрипт, согласие, перефразировки)
  • rag/ — база знаний (ADR-011): sources.yaml (документы, параметры поиска, синонимы) и corpus/*.txt, собранные из PDF в docs/source/rag/