-
Notifications
You must be signed in to change notification settings - Fork 18
DBMS별 SQL 차이를 반영한 Few-Shot Prompt 최적화 제안 #6
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requestpromptThe input provided by the user in natural language that serves as the basis for SQL generation.The input provided by the user in natural language that serves as the basis for SQL generation.
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestpromptThe input provided by the user in natural language that serves as the basis for SQL generation.The input provided by the user in natural language that serves as the basis for SQL generation.
Why ❓
현재 상황:
llm_utils/chains.py파일의create_query_maker_chain함수에서 Few-Shot SQL예제가 모든 DBMS에 동일하게 적용되고 있습니다.Lang2SQL/llm_utils/chains.py
Lines 90 to 104 in 36b5a88
문제점 👿:
How 🤔
SQL-FewShot을 위 프롬프트에 추가하여 데이터베이스 환경에 맞는 올바른 쿼리를 생성하게 합니다.What 🛠️
best_practice_query에 따른 로깅이나 최적의 케이스 수동 추가create_query_maker_chain과 용어 사전 결합을 통해 올바른 쿼리 생성