Dealing with larger, more complex chains
In the previous chapter, we created three plugins:
CheckSpreadsheet
: A native plugin that checks that the Excel spreadsheet contains the required fields and that they fulfill some rulesParseWordDocument
: A native plugin that extracts text from a Word documentProposalChecker
: A semantic plugin that checks whether text blocks fulfill some requirements, such as “does this text block describe a team that has a Ph.D. and a medical doctor?”
With these three plugins, you can already solve the business problem of checking proposals by calling each plugin separately and writing the logic to handle whether there was an error. This is likely sufficient for problems that have a small number of steps.
While we are still going to use a small number of steps and a small number of documents for didactic purposes, the approach to analyzing and making decisions on a large number of documents presented in this chapter...