From b20fafe42ec0bb7ba1c5fa6672bc1bf03e682c1b Mon Sep 17 00:00:00 2001 From: Claude-51124 Date: Tue, 13 Jan 2026 10:55:55 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20=EC=BD=94=EB=93=9C=20=EB=B8=94=EB=A1=9D?= =?UTF-8?q?=EC=9D=84=20=ED=8C=8C=EC=9D=BC=EB=AA=85:=EC=A4=84=EB=B2=88?= =?UTF-8?q?=ED=98=B8=20=ED=98=95=EC=8B=9D=EC=9C=BC=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20(=EB=AC=B8=EC=84=9C=20=EC=9B=90=EC=B9=99=20?= =?UTF-8?q?=EC=A4=80=EC=88=98)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...3_coldmail_ontology_phase1_5_implementation.md | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/journey/troubleshooting/260113_coldmail_ontology_phase1_5_implementation.md b/journey/troubleshooting/260113_coldmail_ontology_phase1_5_implementation.md index 227370c..65bdb1e 100644 --- a/journey/troubleshooting/260113_coldmail_ontology_phase1_5_implementation.md +++ b/journey/troubleshooting/260113_coldmail_ontology_phase1_5_implementation.md @@ -50,19 +50,8 @@ - 매칭된 규칙의 confidence를 DB에서 동적 조회 - DB 없을 때 하드코딩 값 폴백 (하위 호환성) -**코드 구조**: -```python -async def decide_coldmail(email: Dict[str, Any]) -> Dict[str, Any]: - matched = match_rules(email, COLDMAIL_RULES) - - # DB에서 동적 confidence 조회 - for match in matched: - rule_id = match["rule_id"] - db_confidence = await get_rule_confidence(rule_id) - if db_confidence is not None: - match["confidence"] = db_confidence - # DB에 없으면 기존 하드코딩 값 유지 -``` +**코드 구조**: `coldmail_ontology_reasoner.py:251-328` +- `decide_coldmail()`: DB에서 동적 confidence 조회, 없으면 하드코딩 값 폴백 **호출부 수정**: - `coldmail_hybrid_filter.py`: `await is_coldmail_ontology()` 호출