Package version:

A skill to split a string into chunks of text.

interface SplitSkill {
    azureOpenAITokenizerParameters?: AzureOpenAITokenizerParameters;
    context?: string;
    defaultLanguageCode?:
        | "da"
        | "de"
        | "en"
        | "es"
        | "fi"
        | "fr"
        | "it"
        | "ko"
        | "pt"
        | "cs"
        | "nl"
        | "hu"
        | "ja"
        | "pl"
        | "ru"
        | "sv"
        | "tr"
        | "bs"
        | "et"
        | "he"
        | "hi"
        | "hr"
        | "id"
        | "lv"
        | "nb"
        | "sk"
        | "sl"
        | "zh"
        | "is"
        | "sr"
        | "ur"
        | "am"
        | "pt-br";
    description?: string;
    inputs: InputFieldMappingEntry[];
    maximumPagesToTake?: number;
    maxPageLength?: number;
    name?: string;
    odatatype: "#Microsoft.Skills.Text.SplitSkill";
    outputs: OutputFieldMappingEntry[];
    pageOverlapLength?: number;
    textSplitMode?: "pages" | "sentences";
    unit?: string;
}

Hierarchy (view full)

Properties

azureOpenAITokenizerParameters?: AzureOpenAITokenizerParameters

Only applies if the unit is set to azureOpenAITokens. If specified, the splitSkill will use these parameters when performing the tokenization. The parameters are a valid 'encoderModelName' and an optional 'allowedSpecialTokens' property.

context?: string

Represents the level at which operations take place, such as the document root or document content (for example, /document or /document/content). The default is /document.

defaultLanguageCode?:
    | "da"
    | "de"
    | "en"
    | "es"
    | "fi"
    | "fr"
    | "it"
    | "ko"
    | "pt"
    | "cs"
    | "nl"
    | "hu"
    | "ja"
    | "pl"
    | "ru"
    | "sv"
    | "tr"
    | "bs"
    | "et"
    | "he"
    | "hi"
    | "hr"
    | "id"
    | "lv"
    | "nb"
    | "sk"
    | "sl"
    | "zh"
    | "is"
    | "sr"
    | "ur"
    | "am"
    | "pt-br"

A value indicating which language code to use. Default is en.

description?: string

The description of the skill which describes the inputs, outputs, and usage of the skill.

Inputs of the skills could be a column in the source data set, or the output of an upstream skill.

maximumPagesToTake?: number

Only applicable when textSplitMode is set to 'pages'. If specified, the SplitSkill will discontinue splitting after processing the first 'maximumPagesToTake' pages, in order to improve performance when only a few initial pages are needed from each document.

maxPageLength?: number

The desired maximum page length. Default is 10000.

name?: string

The name of the skill which uniquely identifies it within the skillset. A skill with no name defined will be given a default name of its 1-based index in the skills array, prefixed with the character '#'.

odatatype

Polymorphic discriminator, which specifies the different types this object can be

The output of a skill is either a field in a search index, or a value that can be consumed as an input by another skill.

pageOverlapLength?: number

Only applicable when textSplitMode is set to 'pages'. If specified, n+1th chunk will start with this number of characters/tokens from the end of the nth chunk.

textSplitMode?: "pages" | "sentences"

A value indicating which split mode to perform.

unit?: string

Only applies if textSplitMode is set to pages. There are two possible values. The choice of the values will decide the length (maximumPageLength and pageOverlapLength) measurement. The default is 'characters', which means the length will be measured by character.