You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Generate text for training mode, prompt and ground_truth for validation mode
27
28
ifmode=="train":
28
-
text=f"Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instruction:\n\nConvert text to NatSQL: "+input_sequence+"\n\n"+"### Response:\n\n"+output_sequence
29
+
text=f"Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instruction:\n\nConvert text to {sql_type}: "+input_sequence+"\n\n"+"### Response:\n\n"+output_sequence
29
30
output_dataset.append({
30
31
"db_id": db_id,
31
32
"text": text,
32
-
#"tc_original": tc_original
33
33
})
34
34
else: # validation mode
35
-
prompt=f"Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instruction:\n\nConvert text to NatSQL: "+input_sequence+"\n\n### Response:\n\n"
35
+
prompt=f"Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instruction:\n\nConvert text to {sql_type}: "+input_sequence+"\n\n### Response:\n\n"
0 commit comments