Closed coding-fish closed 4 months ago
@coding-fish Thank you for your interets in our work and great suggestions! We will consider this carefully and refine our code soon. For the second suggestion, I remembered I already convert the result list into json in line 227 of llm/src/gpt_request.py
. And I re-run the code which seems it's normal. We will keep refining our code and sorry for inconvenience brought here.
When conduct evaluation using suite at
llm/src/evaluation
, code raise exception for reasons as following:1 encode not indicated when loading json file:
default encode 'gbk' cannot load in our output, but we can only use 'utf8' to keep align with given database and description file. Thus it would be better to explicitly indicate encode like this:
this problem can be found at:
2 type error after loading json
output file is organized as following format:
after
sql_data = json.load(fp)
, we found data type of 'sql_data' is 'list' but not 'dict', so 'sql_data.items()' may be not appropriatewe can fix bug by just delete '.items()' easily
this problem can be found at:
3 evlauation params required
when calculating VES, we found param
--diff_json_path
is required, if not, it may cause error in evaluation_ves. And we cannot see any execution result after a long running time, bacause result can only be printed aftercompute_ves_by_diff
, which must need param--diff_json_path
. so i recommend set it required at first, to remind user in the begining. this problem can be found at: