向量库可选,在pom里去掉向量库实现即可
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user