Open YohannParis opened 1 month ago
This is a bit tricky based on how it is currently done. It isn't an operation that returns a response that can be cached. It's a very long method that does several incremental changes that involve updating an object in place such that values are available for subsequent processing.
The proper way to do this would require splitting the logic into one stateless method that returns a final response containing all information required, and then another method that takes that response and applies it to a document.
This will let us cache the responses and then apply it to documents with the same input.
@dvince2 @dgauldie how would you like to proceed on this? I think it's important to do the caching for that purpose.
Per discussion with @dgauldie:
Describe the task
Document
asset, we run the knowledge extraction pipeline.