From 7e8396db1c1478e8ef1db9aa68cc8655f6ea568f Mon Sep 17 00:00:00 2001 From: umsangdon Date: Tue, 6 Oct 2026 15:17:49 +0900 Subject: [PATCH] fix(chat): exclude technical info --- B01_Dashboard/B01_Dashboard_Knowledge_Chat.py | 2 +- resources/tester/test_b01_knowledge_chat.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/B01_Dashboard/B01_Dashboard_Knowledge_Chat.py b/B01_Dashboard/B01_Dashboard_Knowledge_Chat.py index 26be22a0e..42179624c 100644 --- a/B01_Dashboard/B01_Dashboard_Knowledge_Chat.py +++ b/B01_Dashboard/B01_Dashboard_Knowledge_Chat.py @@ -13,7 +13,7 @@ from common_util.common_util_auth import verify_session router = APIRouter(prefix="/knowledge-chat", tags=["B01_KnowledgeChat"]) KNOWLEDGE = Path(__file__).resolve().parents[1] / "resources" / "knowledge" -EXCLUDED = ("실무문서", "stmate", "다산소프트") +EXCLUDED = ("실무문서", "stmate", "다산소프트", "technical_info") MODEL = "gemini-3.8-flash" diff --git a/resources/tester/test_b01_knowledge_chat.py b/resources/tester/test_b01_knowledge_chat.py index 237e79bb1..bf7667c07 100644 --- a/resources/tester/test_b01_knowledge_chat.py +++ b/resources/tester/test_b01_knowledge_chat.py @@ -49,9 +49,10 @@ def test_chat_searches_all_knowledge_markdown_except_excluded_folders(monkeypatc result = asyncio.run(chat.ask_knowledge_chat(chat.ChatRequest(question="임도 기준"), {})) assert result["answer"] == "설명 [1]" paths = {source["path"] for source in result["sources"]} - assert paths == {"original/법률/현행.md", "technical_info/_검토.md"} + assert paths == {"original/법률/현행.md"} assert "실무문서" not in sent["prompt"] assert "비공개 사례" not in sent["prompt"] assert "STmate" not in sent["prompt"] assert "다산소프트" not in sent["prompt"] + assert "기술정보 안내" not in sent["prompt"] chat._sections.cache_clear()