Implementing TFIDF as a custom component?

No, they’re sequential. Its really just one custom action, but it sends the message to a different app entirely to do the TF-IDF processing and which sends back a response.