fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
Showing only changes of commit 46fb4244c7 - Show all commits

View file

@ -475,7 +475,7 @@ export class KBService implements IGBKBService {
// TODO: Convert DOCX to MD.
answer = Fs.readFileSync(mediaFilename, 'utf8');
format = '.md';
media = path.basename(mediaFilename);
} else {
@ -506,6 +506,12 @@ export class KBService implements IGBKBService {
indexer++;
});
// Skips blank answers.
if (answer && answer.length < 1) {
return false;
}
// Now with all the data ready, creates entities in the store.
const answer1 = {