Uploaded image for project: 'Nuxeo AI Core'
  1. Nuxeo AI Core
  2. AICORE-59

Add caching to enrichment service calls

    XMLWordPrintable

    Details

      Description

      Enrichment services usually call paid external services, eg. AWS Comprehend. I noticed from the translation implementation that a cache would be useful to avoid unnecessary calls. e.g. the following call could be cached.

      ["{'source':'en','target':'es','text':'I am very disappointed','translated':'Estoy muy decepcionado.'}"]

      If we implement a generic cache in AbstractEnrichmentService, any enrichment implementation could benefit from it.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 5 hours
                  1d 5h