Interface RefineDocumentsChainInput

Interface for the input properties of the RefineDocumentsChain class.

interface RefineDocumentsChainInput {
    callbackManager?: CallbackManager;
    callbacks?: Callbacks;
    documentPrompt?: BasePromptTemplate<any, BasePromptValueInterface, any>;
    documentVariableName?: string;
    initialResponseName?: string;
    inputKey?: string;
    llmChain: LLMChain<string, LLMType>;
    memory?: BaseMemory;
    metadata?: Record<string, unknown>;
    outputKey?: string;
    refineLLMChain: LLMChain<string, LLMType>;
    tags?: string[];
    verbose?: boolean;
}

Hierarchy (view full)

Implemented by

Properties

callbackManager?: CallbackManager

Use callbacks instead

callbacks?: Callbacks
documentPrompt?: BasePromptTemplate<any, BasePromptValueInterface, any>
documentVariableName?: string

Variable name in the LLM chain to put the documents in

initialResponseName?: string
inputKey?: string
llmChain: LLMChain<string, LLMType>

LLM Wrapper to use after formatting documents

memory?: BaseMemory
metadata?: Record<string, unknown>
outputKey?: string
refineLLMChain: LLMChain<string, LLMType>
tags?: string[]
verbose?: boolean