Interface ChainSummarizationV2NodeParameters

Source
interface ChainSummarizationV2NodeParameters {
    chunkingMode?: "simple" | "advanced";
    chunkOverlap?: number;
    chunkSize?: number;
    operationMode?:
        | "nodeInputJson"
        | "nodeInputBinary"
        | "documentLoader";
    options?: {
        batching?: {
            batchSize?: number;
            delayBetweenBatches?: number;
        };
        binaryDataKey?: string;
        summarizationMethodAndPrompts?: {
            values: {
                combineMapPrompt?: string;
                prompt?: string;
                refinePrompt?: string;
                refineQuestionPrompt?: string;
                summarizationMethod?: | "map_reduce"
                | "refine"
                | "stuff";
            };
        };
    };
}

Properties§

Source§

readonly chunkingMode?: "simple" | "advanced"

Chunk splitting strategy Default: "simple"

Source§

readonly chunkOverlap?: number

Specifies how much characters overlap there should be between chunks Default: 200

Source§

readonly chunkSize?: number

Controls the max size (in terms of number of characters) of the final document chunk Default: 1000

Source§

readonly operationMode?: "nodeInputJson" | "nodeInputBinary" | "documentLoader"

How to pass data into the summarization chain Default: "nodeInputJson"

Source§

readonly options?: {
    batching?: {
        batchSize?: number;
        delayBetweenBatches?: number;
    };
    binaryDataKey?: string;
    summarizationMethodAndPrompts?: {
        values: {
            combineMapPrompt?: string;
            prompt?: string;
            refinePrompt?: string;
            refineQuestionPrompt?: string;
            summarizationMethod?: | "map_reduce"
            | "refine"
            | "stuff";
        };
    };
}

Default: {}