Skip to content

Commit

Permalink
Removing new fields from SQL query checker
Browse files Browse the repository at this point in the history
  • Loading branch information
hdahme committed Jan 19, 2025
1 parent c28e1b1 commit a1e811a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
Binary file added libs/community/file::memory:?cache=shared
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# flake8: noqa
QUERY_CHECKER = """
Table Schema:
{table_info}
Foreign Key Relationships:
{foreign_keys}
{query}
Double check the {dialect} query above for common mistakes, including:
- Using NOT IN with NULL values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,7 @@ def initialize_llm_chain(cls, values: Dict[str, Any]) -> Any:
llm=values.get("llm"), # type: ignore[arg-type]
prompt=PromptTemplate(
template=QUERY_CHECKER,
input_variables=[
"dialect",
"query",
"table_info_str",
"foreign_key_info_str",
],
input_variables=["dialect", "query"],
),
)

Expand Down

0 comments on commit a1e811a

Please sign in to comment.