11 lines
400 B
Python
11 lines
400 B
Python
"""Pipeline orchestrator: the five stages composed and timed, nothing else."""
|
|
|
|
from app.ports.protocols import MusicCatalog, Recommender
|
|
|
|
|
|
class DiscoveryPipeline:
|
|
"""Session context -> intent+candidates -> grounding -> rerank -> action."""
|
|
|
|
def __init__(self, catalog: MusicCatalog, recommender: Recommender) -> None:
|
|
self._catalog = catalog
|
|
self._recommender = recommender
|