V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  dong706  ›  全部回复第 1 页 / 共 6 页
回复总数  111
1  2  3  4  5  6  
@GiantHard 哇!你这招厉害,学习啦!感谢~
这是 R1 自己的答案:

要实现大模型生成英语作文时精准控制单词数量在 30-40 词范围内,可以尝试以下结构化方法(附示例):
精确指令法(成功率 80%)
提示词示例:
"Write a 35-word English essay about summer vacation. Use exactly 6 sentences: 1 opening (5 words), 4 body sentences (6-8 words each), and 1 closing (5 words. Count words meticulously before responding."
输出示例:
Summer brings bright sunshine. Children play at sandy beaches. Families picnic under shady trees. Ice cream melts in warm hands. Fireworks light up night skies. These moments create lasting memories. (35 words)
分步控制法(成功率 90%)
提示词结构:
[主题]:Spring Festival
[要求]:
总词数:35±2
段落结构:
Opening: 1 句 (5-7 词)
3 个要点句:每句 8-10 词
Closing: 1 句 (6-8 词)
使用基数词代替序数词
避免从句结构
自我检查法(成功率 95%)
提示词示例:
"Generate a 38-word essay about online learning. After drafting, perform these steps:
Remove all adjectives
Replace phrasal verbs with single verbs
Count words and adjust sentence length
Final output in this format: [Essay] [Word count: X]"
输出示例:
Online learning offers flexibility. Students access courses anywhere. Teachers upload materials digitally. Discussions happen via forums. Tests are taken online. This method saves commute time. [Word count: 37]
示例引导法(成功率 85%)
提供模板:
"Follow this exact structure:
Sentence 1: 5-word topic introduction
Sentence 2-4: 8-word explanations
Sentence 5: 7-word conclusion
Example:
Pets teach responsibility. Children feed them daily. They learn cleaning habits. Walking dogs builds discipline. Caring develops lifelong skills. (35 words)"
注意事项:
使用短句结构(平均 6-8 词 / 句)
避免缩略形式和所有格符号
优先使用单音节词汇
用分号替代连接词( and/but )
指定具体主题(如 "My Last Birthday" 而非 "An Event")
调试技巧:
若输出超限,可追加指令:
"Condense by:
Removing all adverbs
Converting phrases to single words (e.g. 'students who study' → 'studying students')
Using numerals instead of words (3→three)"
@andyskaura 多谢老哥。你这个比较符合我的需要,我去研究研究。
@tiandee 就相当于自己定制的智能体呀,肯定需要知识库的。

打个简单的比方,客服系统的智能回复肯定需要投喂客服系统 FAQ 吧?
@SayHelloHi 收到,感谢!
@YingJieZ 收到,我研究下。感谢大佬指点~
@NeedforV2 硅基流动的 api 完全不行啊.......测试了大半天,单词调用返回时间到 10 秒-100 秒之间,均值大概在 30 秒。这样的 api 确定能用?
@chocolatesir 没有任何掉盘~
@vt10JQKA 我本就是有线的键鼠呀
是的通过 keepalived 将 Master VIP 公布出去的
291 天前
回复了 xiangyuecn 创建的主题 全球工单系统 gitee.io 今天全线 502 Bad Gateway
Gitee 在没有通知的情况下,下线了所有 Gitee Pages 服务。真实太 tmd 搞笑了

这谁还敢用 GiteePages
@ysicing 多谢多谢
@ZXiangQAQ 非常感谢,已经在测试了
2023-11-01 10:21:16 +08:00
回复了 dong706 创建的主题 Java Netty 性能优化求助
@huskyui 这篇文章只是阐述如何支持 100w 并发,这个没问题,但是并发数越高 TPS 越低了其实
2023-10-30 16:50:07 +08:00
回复了 dong706 创建的主题 Java Netty 性能优化求助
@anonydmer 测试了四倍没啥改变
2023-10-30 16:32:55 +08:00
回复了 dong706 创建的主题 Java Netty 性能优化求助
@anonydmer 你的意思是 主线程数和工作线程数都可以继续加倍加倍再加倍么?
7261 感谢~~~
2023-09-22 15:19:29 +08:00
回复了 Dreamerwwr 创建的主题 分享创造 有没有减轻人力提重物的发明?
外骨骼正解,军队已经在用了
1  2  3  4  5  6  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1430 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 36ms · UTC 17:04 · PVG 01:04 · LAX 09:04 · JFK 12:04
Developed with CodeLauncher
♥ Do have faith in what you're doing.