GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpecBoostControlSpec
import type { GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpecBoostControlSpec } from "https://googleapis.deno.dev/v1/dialogflow:v3.ts";
Specification for custom ranking based on customer specified attribute value. It provides more controls for customized ranking than the simple (condition, boost) combination above.
interface GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpecBoostControlSpec {
attributeType?: "ATTRIBUTE_TYPE_UNSPECIFIED" | "NUMERICAL" | "FRESHNESS";
fieldName?: string;
interpolationType?: "INTERPOLATION_TYPE_UNSPECIFIED" | "LINEAR";
}§Properties
§
attributeType?: "ATTRIBUTE_TYPE_UNSPECIFIED" | "NUMERICAL" | "FRESHNESS"
[src]Optional. The attribute type to be used to determine the boost amount. The attribute value can be derived from the field value of the specified field_name. In the case of numerical it is straightforward i.e. attribute_value = numerical_field_value. In the case of freshness however, attribute_value = (time.now() - datetime_field_value).
§
Optional. The control points used to define the curve. The monotonic function (defined through the interpolation_type above) passes through the control points listed here.