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
That means in the function trainslate, I can ignore some of the parameters like target_db_config as I don't want to translate the whole database directly translated_sql, model_ans_list, used_pieces, lift_histories = translate( model_name="DeepSeek-R1-Distill-Qwen-32B", src_sql='SELECT DISTINCT "t1"."id" , EXTRACT(YEAR FROM CURRENT_TIMESTAMP) - EXTRACT(YEAR FROM CAST( "t1"."birthday" AS TIMESTAMP )) FROM "patient" AS "t1" INNER JOIN "examination" AS "t2" ON "t1"."id" = "t2"."id" WHERE "t2"."rvvt" = "+"', src_dialect="postgresql", tgt_dialect="mysql", target_db_config=target_db_config, vector_config=vector_config, out_dir="./", retrieval_on=False, top_k=3 )
Activity
code4DB commentedon May 24, 2025
backend/config/init_config.yaml.copydirectory.LEOnarodoChen commentedon May 24, 2025
That means in the function
trainslate, I can ignore some of the parameters liketarget_db_configas I don't want to translate the whole database directlytranslated_sql, model_ans_list, used_pieces, lift_histories = translate( model_name="DeepSeek-R1-Distill-Qwen-32B", src_sql='SELECT DISTINCT "t1"."id" , EXTRACT(YEAR FROM CURRENT_TIMESTAMP) - EXTRACT(YEAR FROM CAST( "t1"."birthday" AS TIMESTAMP )) FROM "patient" AS "t1" INNER JOIN "examination" AS "t2" ON "t1"."id" = "t2"."id" WHERE "t2"."rvvt" = "+"', src_dialect="postgresql", tgt_dialect="mysql", target_db_config=target_db_config, vector_config=vector_config, out_dir="./", retrieval_on=False, top_k=3 )code4DB commentedon May 26, 2025
@LEOnarodoChen You can check the mode defined in the following code:
https://github.com/weAIDB/CrackSQL/blob/pypi/0.0.0-alpha/backend/api/services/rewrite.py#L300