Skip to content

Commit

Permalink
Send db_connection object as parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jcjc712 committed Nov 7, 2023
1 parent 147f207 commit 4767606
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions dataherald/sql_generator/generates_nl_answer.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def execute(
query_response,
top_k=int(os.getenv("UPPER_LIMIT_QUERY_RETURN_ROWS", "50")),
generate_csv=generate_csv,
database_connection=database_connection,
)

if query_response.csv_file_path:
Expand Down
1 change: 1 addition & 0 deletions dataherald/sql_generator/langchain_sqlagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,5 @@ def generate_response(
response.sql_query,
response,
generate_csv=generate_csv,
database_connection=database_connection,
)
1 change: 1 addition & 0 deletions dataherald/sql_generator/langchain_sqlchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,5 @@ def generate_response(
response.sql_query,
response,
generate_csv=generate_csv,
database_connection=database_connection,
)
1 change: 1 addition & 0 deletions dataherald/sql_generator/llamaindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,5 @@ def generate_response(
response.sql_query,
response,
generate_csv=generate_csv,
database_connection=database_connection,
)

0 comments on commit 4767606

Please sign in to comment.