RealtimeProductFeature
. It inherits the RealtimeFeatureComponent with 3 types indicating the entity and the request scope. For this one, there’s a group of features for the primary entity, Product
, as the first type hint to the RealtimeFeatureComponent
. There is no secondary entity, as the second type hint is Any
. In another word, it’s not a composite entity. These features could be applied under any request condition, as the third type hint is Any
.
Now let’s come back to the ranking example. Let’s define five features:
search_score
:
pipelines/main.py
and register the realtime features with Wyvern service:
WyvernService.generate_app
. This basically tells the Wyvern service that these are available realtime features ready.
Now that all the batch/offline features and realtime features are ready, let’s look at how to define the models.