会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
0xcafebabe001
博客园
首页
新随笔
联系
订阅
管理
2025年12月18日
SpringAI-ChatMemory
摘要: 官网地址:https://docs.spring.io/spring-ai/reference/api/chat-memory.html 1、描述 LLM是无状态的,不会保留先前的交互信息,为了解决这个问题,SpringAI提供了聊天记忆功能,使得在与LLM多次交互中存储和检索信息。 2、接口和类说
阅读全文
posted @ 2025-12-18 19:10 0xCAFEBABE_001
阅读(5)
评论(0)
推荐(0)
2025年12月17日
SpringAI-Ollama
摘要: 官网地址:https://docs.spring.io/spring-ai/reference/api/chat/ollama-chat.html 1、描述 可以拉取LLM在本地运行,SpringAI通过OllamaChatModel支持聊天功能 可以使用 ollama pull model-nam
阅读全文
posted @ 2025-12-17 17:42 0xCAFEBABE_001
阅读(2)
评论(0)
推荐(0)
SpringAI-Prompts
摘要: 官网地址:https://docs.spring.io/spring-ai/reference/api/prompt.html 1、描述 Prompts是引导LLM生成特定输出的输入,Prompt的设计和措辞显著影响LLM的响应 2、Prompt类 public class Prompt imple
阅读全文
posted @ 2025-12-17 11:21 0xCAFEBABE_001
阅读(2)
评论(0)
推荐(0)
2025年12月16日
SpringAI-Advisors API
摘要: 官网地址:https://docs.spring.io/spring-ai/reference/api/advisors.html 1、描述 作用:拦截、修改和增强Spring应用中的AI驱动交互,建议使用defaultAdvisors方法注册Advisor 2、核心组件 该API分为非流式Call
阅读全文
posted @ 2025-12-16 15:26 0xCAFEBABE_001
阅读(5)
评论(0)
推荐(0)
SpringAI-ChatClient
摘要: 官网地址:https://docs.spring.io/spring-ai/reference/api/chatclient.html#_prompt_templates 1、描述 ChatClient用来与LLM交互,提供了构建传递给LLM作为输入的Prompt的方法。 2、创建ChatClien
阅读全文
posted @ 2025-12-16 11:19 0xCAFEBABE_001
阅读(1)
评论(0)
推荐(0)
公告