Files
PTSRaiAgent/config
ElebobaandClaude Opus 5.5 fe29ebd629
CI / ruff · pytest (pull_request) Successful in 1m2s
fix(llm): RAG citation pages, scrub placeholders, disease-aware document choice
- converter marks a paragraph glued across a page break with ⟦стр. N⟧; the chunker
  strips the marker and extends the chunk's page range (wrong-page citations 24 -> 3,
  the rest are scale-form table rows split by a page)
- [NAME]/[PHONE] placeholders from privacy.scrub() no longer count as unknown words
  (a scrubbed question used to fall below the coverage gate)
- a question naming one disease boosts its guideline in retrieval and passage choice
  ("ТМС при депрессии" was answered from the PTSD guideline); "антидепрессант" is not a cue

Refs #62

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 04:31:59 +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/