For the complete documentation index, see llms.txt. This page is also available as Markdown.

Use ML Models

These actions provide ability to run real-time inference using various machine learning libraries.

Use ML Models Actions

Score / ScoreML

Scores input data using a pretrained model managed by this handler. Event metadata fields applicable for this action are as follows:

Field
Definition
Example
Default

Input Element

Json path for the input in request event payload

parameters

-

Output Element

Json path for the output in response event payload

$.score

-

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "eventMeta": {
      "type": "object",
      "properties": {
        "inputElement": {
          "type": "string",
          "description": "Json path for the input in request event payload",
          "examples": ["parameters"],
          "default": null
        },
        "outputElement": {
          "type": "string",
          "description": "Json path for the output in response event payload",
          "examples": ["$.score"],
          "default": null
        }
      }
    }
  }
}

With event metadata parameters as:

Parameter
Definition
Example
Default

Input Pattern

JMESPath pattern to apply on data input

[ [text] ]

-

Output Pattern

JMESPath pattern to apply on data output, before returning response

{totalPrice:basket.totalPrice}

-

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "eventMeta": {
      "type": "object",
      "properties": {
        "parameters": {
          "type": "object",
          "properties": {
            "inputPattern": {
              "type": "string",
              "description": "JMESPath pattern to apply on data input",
              "examples": ["[ [text] ]"],
              "default": null
            },
            "outputPattern": {
              "type": "string",
              "description": "JMESPath pattern to apply on data output, before returning response",
              "examples": ["{totalPrice:basket.totalPrice}"],
              "default": null
            }
          }
        }
      }
    }
  }
}

Last updated