We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c262e26 commit 802312eCopy full SHA for 802312e
swift/llm/utils/dataset.py
@@ -1808,7 +1808,7 @@ def synthetic_text_to_sql_preprocesser(dataset: HfDataset):
1808
def preprocess(row):
1809
sql_prompt = row['sql_prompt']
1810
sql_context = row['sql_context']
1811
- sql = row['sql_context']
+ sql = row['sql']
1812
sql_explanation = row['sql_explanation']
1813
query = f'Sql Table information:\n{sql_context}\n{sql_prompt}'
1814
response = f'Let\'s think step by step:\n{sql_explanation}\nSo the final sql is:\n{sql}'
0 commit comments