From 66ab0595dadfc359edb979960cd37c62f14e3dcb Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Thu, 10 Jul 2025 13:21:26 +0800 Subject: [PATCH] 'commit' --- dsLightRag/Util/LightRagUtil.py | 7 ++++--- .../《动能定理》巩固练习_origin.pdf | Bin 326324 -> 326324 bytes 2 files changed, 4 insertions(+), 3 deletions(-) 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 01c837c7a30d78ea87e3cc27aa1ce5d8448ba708..ca7a218af1c75b05bf32dea2c557bf9059b64257 100644 GIT binary patch delta 84 zcmdn;Rd~x+;R)B74b2T2Z?)cHY`w+QdW(7MEtZO(Mn;ydmWIZT=0?tr#;(TBW~PQl ZmX?Mt#^yj^=3;7MXM?U{ddn{s0{}q?8=(LI delta 84 zcmdn;Rd~x+;R)B74J?crZ?)cHY`w+QdW(7MEtZO(Ms6l