-
Notifications
You must be signed in to change notification settings - Fork 227
Closed
Labels
Description
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 withincontentcuration/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 theappnexus
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.