fix(KBService): remove unnecessary skip variable in file processing logic
All checks were successful
GBCI / build (push) Successful in 3m22s
All checks were successful
GBCI / build (push) Successful in 3m22s
This commit is contained in:
parent
3abbec63a7
commit
4e6e34e978
1 changed files with 4 additions and 0 deletions
|
|
@ -1243,6 +1243,9 @@ export class KBService implements IGBKBService {
|
||||||
shouldSave = true;
|
shouldSave = true;
|
||||||
GBLogEx.info(min, `Add embeddings from packages, ${files.length} files being processed...`);
|
GBLogEx.info(min, `Add embeddings from packages, ${files.length} files being processed...`);
|
||||||
await CollectionUtil.asyncForEach(files, async file => {
|
await CollectionUtil.asyncForEach(files, async file => {
|
||||||
|
|
||||||
|
if (file.root) {
|
||||||
|
|
||||||
let content = null;
|
let content = null;
|
||||||
let filePath = path.join(file.root, file.name);
|
let filePath = path.join(file.root, file.name);
|
||||||
try {
|
try {
|
||||||
|
|
@ -1270,6 +1273,7 @@ export class KBService implements IGBKBService {
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
GBLogEx.info(min, `Ignore processing of ${file}. ${GBUtil.toYAML(error)}`);
|
GBLogEx.info(min, `Ignore processing of ${file}. ${GBUtil.toYAML(error)}`);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (shouldSave && min['vectorStore']) {
|
if (shouldSave && min['vectorStore']) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue