Skip to content

Commit ccf3671

Browse files
committed
run_lang2sql 단에서 파라미터 받아올 수 있도록 수정
1 parent f7b8784 commit ccf3671

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

engine/query_executor.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
from utils.llm.graph_utils.enriched_graph import builder as enriched_builder
1515
from utils.llm.llm_response_parser import LLMResponseParser
1616

17-
import streamlit as st
18-
1917
logger = logging.getLogger(__name__)
2018

2119

@@ -26,7 +24,7 @@ def execute_query(
2624
retriever_name: str = "기본",
2725
top_n: int = 5,
2826
device: str = "cpu",
29-
use_enriched_graph: bool = st.session_state.get('graph_config', {}).get('preset') not in (None, '기본'),
27+
use_enriched_graph: bool = False,
3028
session_state: Optional[Union[Dict[str, Any], Any]] = None,
3129
) -> Dict[str, Any]:
3230
"""

interface/app_pages/lang2sql.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,6 @@
142142
retriever_name=user_retriever,
143143
top_n=user_top_n,
144144
device=device,
145+
use_enriched=use_enriched
145146
)
146147
display_result(res=res)

interface/core/lang2sql_runner.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def run_lang2sql(
1616
retriever_name,
1717
top_n,
1818
device,
19+
use_enriched
1920
):
2021
"""
2122
Lang2SQL 실행 함수.
@@ -40,4 +41,5 @@ def run_lang2sql(
4041
retriever_name=retriever_name,
4142
top_n=top_n,
4243
device=device,
44+
use_enriched_graph=use_enriched
4345
)

0 commit comments

Comments
 (0)