classifai icon indicating copy to clipboard operation
classifai copied to clipboard

Add support for Embeddings setup for sites with high numbers of terms

Open jeffpaul opened this issue 1 year ago • 1 comments

Is your enhancement related to a problem? Please describe.

Coming out of UAT of #622, one thing that was identified was sites that might have thousands of terms that getting those processed in vector space by Embeddings could hit an API limit, time out, run long. We should look into options to support an exceedingly high number of terms with a retry mechanism, batching, etc.

Designs

n/a

Describe alternatives you've considered

n/a

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

jeffpaul avatar Dec 06 '23 21:12 jeffpaul

There's also the issue of comparing each term to a post once you reach thousands of items. We'll need some sort of background processing, queue management system to handle both scenarios.

For assigning terms to a post I think we'll also need to consider what the UI looks like. We don't want someone to have to just sit and wait until all the comparisons are done but we also need to show the progress. Here's some of my initial thoughts on that:

  1. When the Embeddings feature is active for a taxonomy that has lots of terms (what constitutes lots? We'd have to do some testing to figure this out but I'm thinking 500+) we alert users that either when saving or when clicking the Classify button (which I think only works right now for the NLU feature, so another thing we'll need to add), processing will happen in the background
  2. Probably within the ClassifAI panel we show a progress bar that automatically updates
  3. This processing happens in the background so a user can leave the post and go to other parts of the sites (or close the browser all together) and when they come back to the post it will update with the latest progress
  4. Alert a user once the process is done and then they can go and review the assigned terms (do we auto assign terms? Do we show them in our new modal UI and allow them to pick the next time they load the post? Something else?)

dkotter avatar Dec 07 '23 20:12 dkotter

Closing this out has this was handled in #779

dkotter avatar Jul 29 '24 18:07 dkotter