|
|
@@ -165,7 +165,7 @@ JSON Array:
|
|
|
"chunk_data": chunk_str
|
|
|
})
|
|
|
|
|
|
- print(f"💡 LLM 返回数据: {data_data}")
|
|
|
+ # print(f"💡 LLM 返回数据: {data_data}")
|
|
|
|
|
|
# 兼容处理:LangChain Parser 通常会直接返回 List 或 Dict
|
|
|
if isinstance(data_data, dict):
|
|
|
@@ -182,7 +182,7 @@ JSON Array:
|
|
|
if batch_data:
|
|
|
output = io.StringIO()
|
|
|
createdAtStr = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
|
|
- writer = csv.writer(output, quoting=csv.QUOTE_ALL, lineterminator='\n')
|
|
|
+ writer = csv.writer(output, quoting=csv.QUOTE_MINIMAL, lineterminator='\n')
|
|
|
|
|
|
print(f"✅ 批次转换成功,包含 {len(batch_data)} 条记录。")
|
|
|
|
|
|
@@ -238,7 +238,7 @@ JSON Array:
|
|
|
标准 Workflow 入口方法
|
|
|
"""
|
|
|
try:
|
|
|
- print(f"传入文件路径:{input_file_path}")
|
|
|
+ print(f"待执行标准化的文件:{input_file_path}")
|
|
|
api_results_dir = "data_files"
|
|
|
saved_path = await self.parse_and_save_to_file(input_file_path, api_results_dir)
|
|
|
|