chore
This commit is contained in:
@@ -221,7 +221,6 @@ class FileStorage {
|
||||
}
|
||||
|
||||
public deleteDir = async (_: Electron.IpcMainInvokeEvent, id: string): Promise<void> => {
|
||||
console.log('[FileStorage] Deleting directory:', path.join(this.storageDir, id))
|
||||
if (!fs.existsSync(path.join(this.storageDir, id))) {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -170,8 +170,6 @@ class KnowledgeService {
|
||||
// 添加预处理逻辑
|
||||
const fileToProcess: FileMetadata = await this.preprocessing(file, base, item)
|
||||
|
||||
console.log('fileToProcess', fileToProcess)
|
||||
|
||||
// 使用处理后的文件进行加载
|
||||
return addFileLoader(ragApplication, fileToProcess, base, forceReload)
|
||||
.then((result) => {
|
||||
@@ -500,7 +498,6 @@ class KnowledgeService {
|
||||
item: KnowledgeItem
|
||||
): Promise<FileMetadata> => {
|
||||
let fileToProcess: FileMetadata = file
|
||||
console.warn(`Preprocessing file`, JSON.stringify(base, null, 2))
|
||||
if (base.preprocessProvider && file.ext.toLowerCase() === '.pdf') {
|
||||
try {
|
||||
const preprocessProvider = new PreprocessProvider(base.preprocessProvider)
|
||||
|
||||
Reference in New Issue
Block a user