Skip to content

Commit

Permalink
add spider config and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
moutozf committed Jan 1, 2024
1 parent f2122b3 commit 77f9ead
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dbgpt_hub/configs/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@
"db_id_name": "db_id",
"output_name": "SQL",
"is_multiple_turn": False,
},
}
# {
# "data_source": "spider",
# "train_file": ["train_spider.json", "train_others.json"],
# "dev_file": ["dev.json"],
# "tables_file": "tables.json",
# "train_tables_file": "tables.json",
# "dev_tables_file": "tables.json",
# "db_id_name": "db_id",
# "output_name": "query",
# "is_multiple_turn": False,
Expand Down
1 change: 1 addition & 0 deletions dbgpt_hub/data_process/sql_data_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def decode_json_file(
+ " is the primary key."
+ "\n"
)
# combination primary key
elif type(primary_key[j]) == list:
combine_p = "The combination of ("
keys = []
Expand Down

0 comments on commit 77f9ead

Please sign in to comment.