A Wyvern pipeline is the API route that defines the logistics of your ML application pipeline and it defines the API endpoint of yours. There are a couple of inputs:
/api/v1/{your PATH}
Now let’s define a PipelineComponent under pipelines/product_ranking/ranking_pipeline.py
:
With this example, MyRankingRequest is the request schema and RankingResponse is the response schema. And the API url is /api/v1/my-ranking
Similar to registering realtime features, register the pipeline with the Wyvern service in pipelines/main.py
:
To register the pipeline, pass the the route_components as a list, containing your pipelines, to WyvernService.generate_app
. This basically register the /api/v1/ranking route in the Wyvern service.
Now if you do wyvern run
, your ranking endpoint is ready to serve a request.
A Wyvern pipeline is the API route that defines the logistics of your ML application pipeline and it defines the API endpoint of yours. There are a couple of inputs:
/api/v1/{your PATH}
Now let’s define a PipelineComponent under pipelines/product_ranking/ranking_pipeline.py
:
With this example, MyRankingRequest is the request schema and RankingResponse is the response schema. And the API url is /api/v1/my-ranking
Similar to registering realtime features, register the pipeline with the Wyvern service in pipelines/main.py
:
To register the pipeline, pass the the route_components as a list, containing your pipelines, to WyvernService.generate_app
. This basically register the /api/v1/ranking route in the Wyvern service.
Now if you do wyvern run
, your ranking endpoint is ready to serve a request.