fix : 매칭 없을 시 판례 미반환 및 판례 판단 조건 조정

This commit is contained in:
jaehwang committed 2026-11-23 11:10:29 +09:00
1 parent aaf88d0c1d
commit c172981c6c
5 files changed
+43 -6

No files matched your search

+4
View File
@@ -132,6 +132,10 @@ async def copyright_review(
}
if legal.llm_verdict == "likely":
legal_status, legal_label = "suspected", "판례에 비추어 저작권 침해 의심"
# TODO: 일치가 없는 의심 낮음(no_registered_corpus_match)은 엔진이 판례·요약을 비워 보낸다.
# LLM 판단(USE_LLM_LEGAL_JUDGE)이 unlikely 인 경우는 일치가 있는 글이라 판례·요약이 그대로
# 남는다. 바이칼 요청("의심 낮음이면 판례·요약 미반환")과 어긋나므로 LLM 판단을 운영에서
# 켜기 전에 이 경우도 precedent_ids=[]·summary="" 로 맞춰야 한다.
elif (
legal.llm_verdict == "unlikely"
or legal.status == "no_registered_corpus_match"