new(basic.gblib): GPT replacing ALLEN NLP Reading Comp.

This commit is contained in:
Rodrigo Rodriguez 2024-01-31 16:02:11 -03:00
parent 7ac1cb4ab7
commit 2e13ea0f6d

View file

@ -750,9 +750,11 @@ export class GBMinService {
min.sandBoxMap = {};
min['scheduleMap'] = {};
min['conversationWelcomed'] = {};
if (process.env.OPENAI_API_KEY) {
min['vectorStore'] = await this.deployer.loadOrCreateEmptyVectorStore(min);
const gbkbPath = DialogKeywords.getGBAIPath(min.botId, 'gbkb');
min['vectorStorePath'] = Path.join('work', gbkbPath, 'docs-vectorized');
}
min.packages = sysPackages;
// NLP Manager.