From 087dbe814d3b1ad752ea36e5f0929df6b197f1e0 Mon Sep 17 00:00:00 2001 From: happybell80 Date: Tue, 14 Oct 2025 00:03:05 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20=EC=BD=9C=EB=93=9C=EB=A9=94=EC=9D=BC=20?= =?UTF-8?q?IR=20=EB=B6=84=EC=84=9D=20=EC=9A=B0=EC=84=A0=EC=88=9C=EC=9C=84?= =?UTF-8?q?=201,=202=20=EC=99=84=EB=A3=8C=20=EA=B8=B0=EB=A1=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 우선순위 1 완료: coldmail_briefing.py 에러 핸들링 (9898479) - 우선순위 2 완료: ir_analyzer.py RAG/LLM 수정 (81d8442) - 우선순위 3: DB 제약조건 SQL 스크립트 제공 (수동 실행 필요) - 100줄로 축약 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../251013_coldmail_ir_analyzer_fix.md | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/troubleshooting/251013_coldmail_ir_analyzer_fix.md b/troubleshooting/251013_coldmail_ir_analyzer_fix.md index 6ff03ac..ab9631c 100644 --- a/troubleshooting/251013_coldmail_ir_analyzer_fix.md +++ b/troubleshooting/251013_coldmail_ir_analyzer_fix.md @@ -69,20 +69,21 @@ - 165-172줄: try-except로 감싸기 - 구현 완료: 9898479 (2025-10-13) -### 우선순위 2: ir_analyzer.py 수정 +### 우선순위 2: ir_analyzer.py 수정 ✅ -**query_rag() 함수 (18-45줄):** -- 18줄: 파라미터 document_id → team_id로 변경 -- 28줄: /api/query → /api/search -- 29-35줄: payload를 query, team_id, limit, threshold로 변경 +- query_rag():17-50: team_id로 변경, /api/search 사용 +- call_llm():53-83: LLMService 사용 +- extract_ir_metrics():123-131: team_id 환경변수 사용 +- 구현 완료: 81d8442 (2025-10-13) -**call_llm() 함수 (48-74줄):** -- rb8001 LLM 서비스(app/llm/llm_service.py) 사용으로 전체 변경 -- LLMService, LLMRequest import 추가 +### 우선순위 3: DB 제약조건 추가 (수동 실행 필요) -### 우선순위 3: DB 제약조건 추가 - -- 51123 서버: startup_valuation 테이블 UNIQUE 제약조건 추가 +**51123 서버에서 실행:** +```sql +ALTER TABLE startup_valuation +ADD CONSTRAINT startup_valuation_team_startup_unique +UNIQUE (team_id, startup_name); +``` ---