mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-06-18 20:07:03 +00:00
增加Excel文档加载功能,处理向量库管理createSchema方法WeaviateEmbeddingStore.builder().build();直接构建报错问题。
This commit is contained in:
@@ -7,6 +7,8 @@ public class FileType {
|
||||
public static final String DOC = "doc";
|
||||
public static final String DOCX = "docx";
|
||||
public static final String PDF = "pdf";
|
||||
public static final String XLS = "xls";
|
||||
public static final String XLSX = "xlsx";
|
||||
|
||||
public static final String LOG = "log";
|
||||
public static final String XML = "xml";
|
||||
@@ -88,4 +90,13 @@ public class FileType {
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isExcel(String type){
|
||||
if (type.equalsIgnoreCase(XLS) || type.equalsIgnoreCase(XLSX)){
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user