Quickstart
Start building your machine learning application
Install Wyvern
This will also install the wyvern CLI
Create Wyvern Application
Once Wyvern is installed, run this command to initialize your Wyvern project:
Now that the wyvern init
has set up your initial repository, you should see the following file structure in the my-project
repository:
The generated template code is an ML pipeline example for ranking products.
Run Wyvern Application
Pre-requisite
- Redis service
Wyvern uses redis as its index and online feature store. By default, Wyvern connects to the localhost:6379
Your can run this command to install and spin up local redis
Run the wyvern service
Now your wyvern service runs on http://0.0.0.0:5001 and the default ranking API schema could be found at http://0.0.0.0:5001/redoc#operation/MyRankingPipeline_api_v1_ranking_post.
Test ranking request
Assuming you have 24 products and you would like to rank them. Here’s a curl request:
The request sends 24 products to Wyvern. Wyvern ranks these products and returns the 8 products (in descending order) to show on the first page ("user_page": 0
).
You should see a response like the following with the products being ordered descendingly by their ranking score.
Congratulations on making your first Wyvern request!
More
Head over to the Wyvern Application to learn more about Wyvern
Was this page helpful?