botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Working with High Number of Knowledge Bases

Open dkonyayev opened this issue 4 years ago • 6 comments

Version

Latest

Describe the bug

We have been testing Orchestrator with about a dozen QNA and 2 LUIS apps. We have run the evaluation and test modes, and adjusted some content. The prediction accuracy is OK but not great.

All of our content is managed by different teams. It seems that with Orchestrator we need to have an admin constantly testing responses to various questions and adjusting content managed by others.

Can you provide guidelines on how best to use Orchestrator in the environment with dozens of QNA knowledge bases and LUIS apps? Are there realistic thresholds on how much content Orchestrator can successfully work with?

dkonyayev avatar Feb 17 '22 14:02 dkonyayev

Hi @dkonyayev, BF-CLI Orchestrator has a "test" command that can evaluate the performance of an aggregated of OnA knowledge bases using Orchestrator. The "test" command produces an evaluation report and can help the "admin" discovering overlapping knowledge base utterances. Please try using this command and we'd happy to help dissect the report. Thanks.

hcyang avatar Feb 18 '22 20:02 hcyang

I'm also interested in this. Any recommended steps? Also, how can we do this with Composer?

ryub3n avatar Feb 22 '22 11:02 ryub3n

The "test" command generates a report documented in https://github.com/microsoft/botframework-sdk/blob/main/Orchestrator/docs/BFOrchestratorReport.md. Please take a look. For now, this test is run as an off-line BF-CLI command (https://github.com/microsoft/botframework-cli), not part of Composer, unfortunately.

hcyang avatar Feb 23 '22 05:02 hcyang

Hi @hcyang. My question is about the ongoing operations. As I mentioned, we have multiple KBs (couple of dozen) managed by multiple teams. They manage the KBs autonomously and modify content at any time.

  • Do we need to refresh orchestrator model after each update and deploy it with our chatbot codebase?
  • Do we need to run "test" command after each update to evaluate the performance?

This would become unmanageable very quickly so I am trying to figure out if Orchestrator would even work for our environment.

dkonyayev avatar Feb 23 '22 15:02 dkonyayev

Orchestrator aggregates label data from sub-models and creates a "meta" model in order to dispatch a query to one of the KBs. It would be most accurate if the meta Orchestrator model can be trained on the most up-to-date sub-models (KBs) data. After you have an update, it's wise to run the "test" command" to compare the performance before and after. BTW, Orchestrator's "test" command can be used to evaluate a single KB's performance as well, it's not limited to evaluating only the "meta" Orchestrator model.

I can image that the sub-model KBs can be updated in real time, independently and unbeknownst to each other, so it can be a hassle to coordinate the changes and refresh the Orchestrator all the time. I think what you can do is to set a cadence for refreshing the meta Orchestrator model, say weekly/monthly, or after a large update of some the sub-model KBs (if you are aware of that happening), or after some complaints due to KB updates (if you were only aware of those after the fact). As Orchestrator uses the sematic-based DNN models, it is resilient to some minor textual changes in sub-model KBs.

hcyang avatar Feb 23 '22 18:02 hcyang

Closing this issue due to inactivity. If the issue persist, please open a new one.

axelsrz avatar Mar 07 '22 19:03 axelsrz