From eacbfd0d05d934c63a43c88edc0d02c38582f655 Mon Sep 17 00:00:00 2001 From: happybell80 Date: Mon, 13 Oct 2025 23:45:42 +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=EB=AC=B8=EC=84=9C=20=EC=B6=95?= =?UTF-8?q?=EC=95=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 코드 블록 제거, 파일명:줄번호만 사용 - 116줄 → 105줄로 축약 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../251013_coldmail_ir_analyzer_fix.md | 25 ++++++------------- 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/troubleshooting/251013_coldmail_ir_analyzer_fix.md b/troubleshooting/251013_coldmail_ir_analyzer_fix.md index bcb544b..3ddbde2 100644 --- a/troubleshooting/251013_coldmail_ir_analyzer_fix.md +++ b/troubleshooting/251013_coldmail_ir_analyzer_fix.md @@ -74,32 +74,21 @@ asyncpg.exceptions.InvalidColumnReferenceError: there is no unique or exclusion ### 우선순위 1: ir_analyzer.py 수정 **query_rag() 함수 (18-45줄):** -- 28줄: url = f"{SKILL_RAG_FILE_URL}/api/search" -- 29-35줄: payload 변경 - ``` - 기존: {"document_id": document_id, "query": query} - 변경: {"query": query, "team_id": team_id, "limit": 10, "threshold": 0.5} - ``` -- team_id 파라미터 추가 필요 +- 18줄: 파라미터 document_id → team_id로 변경 +- 28줄: /api/query → /api/search +- 29-35줄: payload를 query, team_id, limit, threshold로 변경 **call_llm() 함수 (48-74줄):** -- rb8001 LLM 서비스 사용으로 전체 변경 -- from app.llm.llm_service import LLMService, LLMRequest -- LLMRequest(message=prompt, user_id="system", robeing_id="rb8001", model="gemini-2.5-flash-lite") +- rb8001 LLM 서비스(app/llm/llm_service.py) 사용으로 전체 변경 +- LLMService, LLMRequest import 추가 ### 우선순위 2: DB 제약조건 추가 -**51123 서버 DB 작업:** -- startup_valuation 테이블에 UNIQUE 제약조건 추가 -- 중복 방지 컬럼 조합 확인 필요 +- 51123 서버: startup_valuation 테이블 UNIQUE 제약조건 추가 ### 우선순위 3: 테스트 재실행 -**배포 프로세스:** -1. 로컬 수정 완료 -2. git push -3. Gitea Actions 배포 대기 -4. docker exec -it rb8001 python tests/test_coldmail_briefing.py --test scheduler +- git push → Gitea Actions 배포 → 테스트 재실행 ---