diff --git a/dsLightRag/Util/LightRagUtil.py b/dsLightRag/Util/LightRagUtil.py index 12d6100a..6c6ed31a 100644 --- a/dsLightRag/Util/LightRagUtil.py +++ b/dsLightRag/Util/LightRagUtil.py @@ -216,16 +216,17 @@ def format_exam_content(raw_text, output_path): 内容如下: """ prompt += raw_text - + completion = client.chat.completions.create( model="deepseek-v3", messages=[ {"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": prompt}, ], + max_tokens=16384 # 支持用户设置16K(16384)及以下的数值。 ) - + formatted_content = completion.choices[0].message.content - + with open(output_path, "w", encoding="utf-8") as f: f.write(formatted_content) diff --git a/dsLightRag/output/《动能定理》巩固练习/auto/《动能定理》巩固练习_origin.pdf b/dsLightRag/output/《动能定理》巩固练习/auto/《动能定理》巩固练习_origin.pdf index 01c837c7..ca7a218a 100644 Binary files a/dsLightRag/output/《动能定理》巩固练习/auto/《动能定理》巩固练习_origin.pdf and b/dsLightRag/output/《动能定理》巩固练习/auto/《动能定理》巩固练习_origin.pdf differ