feat:更新温度相关的内容
This commit is contained in:
@@ -27,3 +27,17 @@ LLM 调用|Prompt 编写与设计|多轮对话记忆|独立搭建智能体
|
||||
- 多轮对话如何保持上下文
|
||||
- Prompt 结构设计
|
||||
- 记忆模块(Memory)的基本用法
|
||||
|
||||
---
|
||||
|
||||
### 3. `s03_llm_temperature`(温度参数对输出的影响)
|
||||
演示不同 temperature 参数对 LLM 输出多样性和创造性的影响。
|
||||
|
||||
🔧 使用提示:
|
||||
想测试不同温度参数的效果?
|
||||
👉 直接修改代码中的 `temperature` 值即可(范围通常为 0-2)。
|
||||
|
||||
✅ 掌握点:
|
||||
- temperature 参数的作用和影响
|
||||
- 如何根据场景选择合适的温度值
|
||||
- 低温度(稳定)与高温度(随机)输出的对比
|
||||
@@ -144,27 +144,3 @@ if __name__ == '__main__':
|
||||
config={'configurable':{'session_id':session_id}}
|
||||
)
|
||||
print(f"AI:{response['output']}")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user