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()` 호출