From 11b0a86902c143c29a4dc10dde1854a0cfa40da6 Mon Sep 17 00:00:00 2001 From: huangge1199 Date: Mon, 26 May 2025 15:29:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E6=96=87=E6=A1=A3=E5=A4=84=E7=90=86?= =?UTF-8?q?=E9=83=A8=E5=88=86=E6=B3=A8=E9=87=8A=E6=8E=89=EF=BC=8C=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E6=AF=8F=E6=AC=A1=E5=90=AF=E5=8A=A8=E9=83=BD=E5=AF=B9?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E8=BF=9B=E8=A1=8C=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/huangge1199/aiagent/rag/RagConfig.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/huangge1199/aiagent/rag/RagConfig.java b/src/main/java/com/huangge1199/aiagent/rag/RagConfig.java index 5f91e1a..2ab8d75 100644 --- a/src/main/java/com/huangge1199/aiagent/rag/RagConfig.java +++ b/src/main/java/com/huangge1199/aiagent/rag/RagConfig.java @@ -39,13 +39,13 @@ public class RagConfig { @Bean VectorStore vectorStore(@Qualifier("ollamaEmbeddingModel") EmbeddingModel embeddingModel) { SimpleVectorStore simpleVectorStore = SimpleVectorStore.builder(embeddingModel).build(); - // 加载文档 - List documentList = documentLoaderUtils.loadMarkdowns(); - // 自主切分文档 - List splitDocuments = myTokenTextSplitter.splitCustomized(documentList); - // 自动补充关键词元信息 - List enrichedDocuments = myKeywordEnricher.enrichDocuments(documentList); - simpleVectorStore.add(enrichedDocuments); +// // 加载文档 +// List documentList = documentLoaderUtils.loadMarkdowns(); +// // 自主切分文档 +// List splitDocuments = myTokenTextSplitter.splitCustomized(documentList); +// // 自动补充关键词元信息 +// List enrichedDocuments = myKeywordEnricher.enrichDocuments(documentList); +// simpleVectorStore.add(enrichedDocuments); return simpleVectorStore; } }