Skip to content

데이터베이스와 무관한 질문 처리 및 검색 결과 구조 개선 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task
DShomin opened this issue Mar 5, 2025 · 2 comments
Open
1 task
Labels
agent The core processing component that interprets user input, manages workflows, and orchestrates the SQ enhancement New feature or request

Comments

@DShomin
Copy link
Contributor

DShomin commented Mar 5, 2025

❌ 문제점

  • 사용자가 데이터베이스와 관련 없는 질문을 입력하면, LLM이 무리하게 SQL 쿼리를 생성하려다 할루시네이션이 발생할 수 있음
  • 예를 들어, “오늘 날씨는 어때?” 같은 질문을 했을 때도 SQL 쿼리를 생성하려 할 가능성이 있음

✅ 해결 방안

  • Condition Edge 추가

🔍ToDo

  • 사용자 질문과 검색 결과를 Prompt로 LLM에게 연관된 질문인지 확인하는 Condition Edge를 만든다.
@ehddnr301
Copy link
Collaborator

DBMS 관련 질문이 아니라면 SQL이 생성되지 않아야? RED Team의 입력이라면?
-> 분기처리해서 관련질문이 아니라고 답변되어야함
-> Conditional Edge 연결을 어디다가 해야할지?가 결정이 필요한 상태?

@ehddnr301 ehddnr301 added enhancement New feature or request agent The core processing component that interprets user input, manages workflows, and orchestrates the SQ labels Mar 11, 2025
@ParkGyeongTae
Copy link
Contributor

사용자 질문과 검색 결과를 연관된 질문인지 확인하는 아이디어가 좋은 것 같습니다~!
사용자가 질문할 때마다 적절한지 체크하는 API 양을 소모하는 것은 추후에 최적화할 여지도 있겠네요~!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent The core processing component that interprets user input, manages workflows, and orchestrates the SQ enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants