Repository navigation
feat: Oracle 부서별 질의 데모 구현 및 실제 DB·LLM 검증 - #257
Open
seyoung4503 wants to merge 1 commit into
Open
seyoung4503 wants to merge 1 commit into
seyoung4503 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣ Issue Number
📝 요약(Summary)
LIMIT을 붙여 실패하던 경로에 Oracle 연결 설정·드라이버·FETCH FIRST처리를 추가합니다. 부서별 매출, 정의 없는 용어, 계정별 급여 접근을 기존 하네스로 실행하는 재현 가능한 CLI 데모를 포함합니다.ask_user시 같은 배치의 SQL까지 취소합니다. Oracle 접근 오류(ORA-00942/01031)는 추가 조회 없이 중립적인 안내로 턴을 종료합니다.docs/oracle_demo.md, SQL·DB 사용자·실제 답변은bench/oracle/results/에 있습니다.검증
접근 오류 보완 전에는 13/15였습니다. DB는 모두 차단했으나 모델이 테이블 부재로 단정한 2건을 발견했고, 그 실패 기록도 보존했습니다. 수정 후 15회 모두 통과했고 실제 최종 답변도 확인했습니다. 고정 사례의 반복이며 독립 질문 15개나 일반 정확도 100%를 뜻하지 않습니다.
💬 To Reviewers
SqlAlchemyExplorer,ContextConcierge,SemanticFederationTool,RunSQL,SafetyPipeline,agent_loop를 재사용합니다. 제품 코드 순증 +199줄, 데모 +350줄, 테스트 +250줄입니다.ToolResult.stop_turn은 도구 호출 ID마다 응답을 남기고 미실행 호출을 취소해 다음 사용자 턴의 transcript를 유효하게 유지합니다. SQL 호출이 ask_user보다 먼저 나오는 동일 배치, 접근 거절 후 남은 배치, 다음 사용자 턴 재개를 회귀 테스트했습니다.ask_user가 호출된 후 실행 중단은 코드로 강제합니다.구현 원칙 verify
PR Checklist