Stabilize runtime auth and E2E coverage
This commit is contained in:
parent
6a3e3b541c
commit
188e899394
133 changed files with 55987 additions and 6775 deletions
|
|
@ -301,9 +301,14 @@ def _client_state_candidates_block() -> str:
|
|||
return f"[내담자 상태 후보 — code:라벨]\n- {items}"
|
||||
|
||||
|
||||
# ─ few-shot 골든셋 예시(data/golden) — 발화→기법 라벨 일관성 보정 ────────────
|
||||
# 윤찬 6결정 '재귀학습 few-shot부터' + taxonomy '0615 합성변형' 설계의 실제 활용.
|
||||
# 컨테이너/배포에선 GOLDEN_DIR env 로 마운트 경로 지정. 없으면 graceful(빈 블록).
|
||||
# ─ few-shot 골든셋 예시(data/golden) — 명시적으로 켠 환경에서만 로딩 ─────────
|
||||
# 골든셋은 학습/평가 보정 자료이지 운영 런타임의 기본 데이터가 아니다.
|
||||
_GOLDEN_FEWSHOT_ENABLED = os.environ.get("EVALUATOR_GOLDEN_FEWSHOT_ENABLED", "").lower() in {
|
||||
"1",
|
||||
"true",
|
||||
"yes",
|
||||
"on",
|
||||
}
|
||||
_GOLDEN_DIR = os.environ.get("GOLDEN_DIR") or os.path.join(
|
||||
os.path.dirname(__file__), "..", "..", "..", "..", "data", "golden"
|
||||
)
|
||||
|
|
@ -312,6 +317,8 @@ _GOLDEN_DIR = os.environ.get("GOLDEN_DIR") or os.path.join(
|
|||
def _load_fewshot_examples(max_n: int = 6) -> list[dict[str, Any]]:
|
||||
"""골든셋에서 기법 다양성을 커버하는 상담자 발화 few-shot 예시(없으면 빈 리스트)."""
|
||||
out: list[dict[str, Any]] = []
|
||||
if not _GOLDEN_FEWSHOT_ENABLED:
|
||||
return out
|
||||
seen: set[str] = set()
|
||||
try:
|
||||
files = sorted(f for f in os.listdir(_GOLDEN_DIR) if f.endswith(".jsonl"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue