Introduction to Custom Models
While Alloy supports a wide range of services within workflows, you may also want to make decisions based on a proprietary dataset or model. For example, you may have a fraud model that you would like to use in a workflow.
To accomplish this, the Custom Models service can be configured & included in an Alloy workflow.
- Either you or Alloy can host your custom model that will be invoked during an evaluation.
- Your model returns a score & other optional data to Alloy.
- You can configure decision thresholds based on that score (& other data) in your workflow within the Alloy dashboard.
Customer Hosted Custom Models
When you host your custom model, you must configure an endpoint that Alloy will POST
during an evaluation.
You will completely control both the model code and runtime environment. Any errors returned by your endpoint will be treated as an external service failure.
Alloy Hosted Custom Models
When Alloy hosts your custom model, you will still be in complete control of your model code, however the model will run in an Alloy deployed AWS Lambda.
You may use any of the languages currently supported by AWS Lambda.
This custom model Lambda is isolated from both the internet and the rest of Alloy's infrastructure, however certain exceptions can be made for accessing customer controlled endpoints to obtain proprietary data.
Members of your organization will be invited to a shared GitHub repository containing a folder for each custom model. Your team can make changes to your custom models & submit changes to Alloy for a security review.
The shared GitHub repository will also include mechanisms for deploying approved custom model code to dev & prod AWS Lambdas for use within Alloy workflows & journeys.
Alloy will ensure that the custom model Lambda is invoked correctly, however any errors that occur in the custom model code will be treated as an external service failure.
Alloy will not be reviewing the custom model's functionality, but will be verifying that it meets our security requirements before deployment on our infrastructure.
Updated over 1 year ago