From 77f7ac0af1e086e9ffce3e25476c96920923c72d Mon Sep 17 00:00:00 2001 From: Yzm Date: Sat, 11 Oct 2025 20:09:15 +0800 Subject: [PATCH] =?UTF-8?q?refactor(knowledge):=20=E6=A0=87=E8=AE=B0?= =?UTF-8?q?=E5=90=91=E9=87=8F=E5=AD=98=E5=82=A8=E6=9C=8D=E5=8A=A1=E4=B8=BA?= =?UTF-8?q?=E9=A6=96=E9=80=89=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 @Primary 注解以指定为主要 Bean 实现 - 确保在多个实现存在时优先使用该服务 --- .../main/java/org/ruoyi/service/impl/VectorStoreServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/ruoyi-modules-api/ruoyi-knowledge-api/src/main/java/org/ruoyi/service/impl/VectorStoreServiceImpl.java b/ruoyi-modules-api/ruoyi-knowledge-api/src/main/java/org/ruoyi/service/impl/VectorStoreServiceImpl.java index bbe5c8af..58b44f25 100644 --- a/ruoyi-modules-api/ruoyi-knowledge-api/src/main/java/org/ruoyi/service/impl/VectorStoreServiceImpl.java +++ b/ruoyi-modules-api/ruoyi-knowledge-api/src/main/java/org/ruoyi/service/impl/VectorStoreServiceImpl.java @@ -19,6 +19,7 @@ import java.util.stream.Collectors; * @author ageer */ @Service +@Primary @Slf4j @RequiredArgsConstructor public class VectorStoreServiceImpl implements VectorStoreService {