update embeddings

This commit is contained in:
duanfuxiang
2025-06-14 09:17:44 +08:00
parent c71a13a659
commit f1ecc16c26
4 changed files with 322 additions and 211 deletions

View File

@@ -56,7 +56,9 @@ export async function matchSearchUsingCorePlugin(
break;
}
const content = await vault.cachedRead(file as TFile);
let content = await vault.cachedRead(file as TFile);
// 清理null字节防止PostgreSQL UTF8编码错误
content = content.replace(/\0/g, '');
const lines = content.split('\n');
// `fileMatches.result.content` holds an array of matches for the file.