Databricks SDK for JavaScript
    Preparing search index...
    interface AiClassifyRequest {
        content?: JsonValue;
        labels?: JsonValue;
        options?: AiClassifyOptions;
    }
    Index

    Properties

    content?: JsonValue

    The content to classify. It accepts a plain string or the response object of ai_parse_document.

    labels?: JsonValue

    The label set to classify as. Either a JSON array of label strings (e.g. ["spam", "not_spam"]), or a JSON object mapping each label to a description (e.g. {"spam": "unsolicited bulk message", "not_spam": "a legitimate message"}). Accepts 2 to 500 labels, each 1 to 100 characters.

    Function options. Omitted fields fall back to their documented defaults.