refactor(SystemKeywords): comment out unused ID column logic for clarity
Some checks are pending
GBCI / build (push) Waiting to run
Some checks are pending
GBCI / build (push) Waiting to run
This commit is contained in:
parent
58ebbe880c
commit
fb24bbd98e
1 changed files with 8 additions and 1 deletions
|
@ -1242,8 +1242,13 @@ export class KBService implements IGBKBService {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GBLogEx.info(min, `Added ${files.length} from site...`);
|
||||||
|
|
||||||
files = await walkPromise(urlJoin(localPath, 'docs'));
|
files = await walkPromise(urlJoin(localPath, 'docs'));
|
||||||
|
|
||||||
|
GBLogEx.info(min, `Add ${files.length} files being processed...`);
|
||||||
|
|
||||||
|
|
||||||
// const gbdrive = path.join(process.env.PWD, 'work', GBUtil.getGBAIPath(min.botId, 'gbdrive'));
|
// const gbdrive = path.join(process.env.PWD, 'work', GBUtil.getGBAIPath(min.botId, 'gbdrive'));
|
||||||
// files = files.concat(await walkPromise(gbdrive));
|
// files = files.concat(await walkPromise(gbdrive));
|
||||||
|
|
||||||
|
@ -1256,8 +1261,10 @@ 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 => {
|
||||||
|
|
||||||
|
let filePath = typeof file === 'string' ? file : path.join(file.root, file.name);
|
||||||
|
|
||||||
if (file.root) {
|
if (filePath) {
|
||||||
|
|
||||||
let content = null;
|
let content = null;
|
||||||
let filePath = path.join(file.root, file.name);
|
let filePath = path.join(file.root, file.name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue