fix(chat): exclude technical info
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user