向量库可选,在pom里去掉向量库实现即可

This commit is contained in:
thinkgem
2025-05-23 19:01:15 +08:00
parent 4e5d776104
commit 6f05485e8f
4 changed files with 28 additions and 27 deletions

View File

@@ -133,7 +133,7 @@ public class CategoryService extends TreeService<CategoryDao, Category> {
*/
public String rebuildVectorStore(Category category) {
if (articleVectorStore == null) {
return text("您好,系统未安装全文检索模块");
return text("您好,系统未配置向量数据库");
}
return articleVectorStore.rebuild(new Article(category));
}

View File

@@ -129,7 +129,7 @@ public class SiteService extends CrudService<SiteDao, Site> {
*/
public String rebuildVectorStore(Site site) {
if (articleVectorStore == null) {
return text("您好,系统未安装内容管理AI模块");
return text("您好,系统未配置向量数据库");
}
return articleVectorStore.rebuild(new Article(new Category(site)));
}