Overview
To integrate with the appnexus library, we need to create an AutomationManager class that manages interactions with any instance of our backends(for example Whisper, Recommendations, GCS, etc). The task involves designing and implementing the manager class to interact with our appnexus library's adapter and backend implementations.
Description and outcomes
- Implement the AutomationManager class that interacts with the appnexus library
- The AutomationManager should have the following methods to manage interaction with the recommendations backend;
generate_embedding(text) -> Vector
embedding_exists(embedding) -> Boolean
load_recommendations(embedding) -> []
cache_embeddings(embeddings) -> Vector
- The
AutomationManager class should be implemented within contentcuration/contentcuration/utils/automation_manager.py
- The actual functionalities of these methods is out of scope of this task as they rely heavily on presence of the backends that are currently not available. Boilerplate will suffice, for now.
Accessibility requirements
Not applicable
Acceptance criteria
- The
AutomationManager class is designed to interact with the appnexus library's adapter and backend implementations.
- The
AutomationManager class has appropriate methods to generate, load, cache and check for embeddings
- Unit tests to validate the correctness of methods in the
AutomationManager
- Documentation is added to guide on usages of the class and methods.
Resources
#4302
Overview
To integrate with the
appnexuslibrary, we need to create anAutomationManagerclass that manages interactions with any instance of our backends(for example Whisper, Recommendations, GCS, etc). The task involves designing and implementing the manager class to interact with ourappnexuslibrary's adapter and backend implementations.Description and outcomes
generate_embedding(text) -> Vectorembedding_exists(embedding) -> Booleanload_recommendations(embedding) -> []cache_embeddings(embeddings) -> VectorAutomationManagerclass should be implemented withincontentcuration/contentcuration/utils/automation_manager.pyAccessibility requirements
Not applicable
Acceptance criteria
AutomationManagerclass is designed to interact with theappnexuslibrary's adapter and backend implementations.AutomationManagerclass has appropriate methods to generate, load, cache and check for embeddingsAutomationManagerResources
#4302