guidone / red-bot-knowledge-base

Knowled base responder for Red-Bot.io
0 stars 0 forks source link

Problems using "Knowledge Base" subflow #1

Open akalagov opened 5 months ago

akalagov commented 5 months ago

When trying to run the Knowledge Base Plugin, I get several problems:

  1. The configuration page in Mission Control /mc/knowledge-base/configure is not displayed
  2. When trying to use the "Knowledge Base" subflow, I get an error message in the console: TypeError: minisearch is not a constructor that references the "Index articles" function node. The "minisearch" variable is missing from the global context, resulting in an error in the line: const minisearch = global.get('minisearch');
  3. The "NLP.js Train (faq)" node in "Knowledge Base" subflow points to an invalid "Model name" configuration

Please tell me how to solve these problems?

akalagov commented 4 months ago
  1. The configuration page in Mission Control /mc/knowledge-base/configure is not displayed

I found an error, extra parentheses in knowledge-base.js: ...{Legend:()=>{const{sendMessage:e}=c()();return s().createElement... Must be: ...{Legend:()=>{const{sendMessage:e}=c();return s().createElement...