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 chunk Overlap?: number
readonly chunk Overlap?: number
Specifies how much characters overlap there should be between chunks Default: 200
Source§readonly chunk Size?: number
readonly chunk Size?: number
Controls the max size (in terms of number of characters) of the final document chunk Default: 1000
Source§readonly operation Mode?: "nodeInputJson" | "nodeInputBinary" | "documentLoader"
readonly operation Mode?: "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";
};
};
}
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: {}
Chunk splitting strategy Default: "simple"