跳到正文
掘金 AI· 原哥yuanGe·· 2026-10-28AI 评分54

Spring AI 实战:把内存换成 PgVector + Redis,让 RAG 服务重启不丢数据

AI 导读

作者在系列第四篇中把物流智能客服的向量库从 SimpleVectorStore 换成 PgVectorStore、把对话记忆换成自写的 RedisChatMemoryRepository,接口层与业务代码不改。

来源:掘金 AI · juejin.cn