Quickstart for ML Engineers
Ritual lets users easily integrate typical AI use cases and workflows with their blockchain workflow. Users can offer their ML models to others or build protocols with their ML models.
How does the integration between web3 and AI functionality work?
On a high-level, web-3 and AI functionality are integrated through the following steps:
- User creates a subscription by calling their consumer smart contract.
- The consumer contract calls the Coordinator method to create a subscription. Refer to Consumer (opens in a new tab) and Subscription (opens in a new tab) sections of our docs for more details.
- The subscription is picked up by an Infernet Node.
- The Infernet Node dispatches the subscription to a container that runs a compute (which could be an ML model).
- The container processes the subscription and returns the result to the Infernet Node.
- The Infernet Node delivers the result to the smart contract via the Coordinator contract.
- Coordinator contract delivers the result by calling the
_receiveCompute()
(opens in a new tab) method on the consumer smart contract.
Where to go from here?
- Got some AI models ready to go? Head over to the Infernet Container (opens in a new tab) section of our docs to see how you can turn your service into an Infernet-Compatible container.
- For end-to-end integration of your smart-contracts, head over to Ritual Learn (opens in a new tab)'s examples section for plenty of examples on how you can integrate your smart contracts with Infernet.
- To build ML workflows using ritual's
infernet-ml
(opens in a new tab) library, check out our Ritual ML Workflows.