langchain.js
    Preparing search index...
    • Create a chain that passes a list of documents to a model.

      Type Parameters

      • RunOutput = string

      Parameters

      • __namedParameters: {
            documentPrompt?: any;
            documentSeparator?: string;
            llm: LanguageModelLike;
            outputParser?: any;
            prompt: BasePromptTemplate;
        }

      Returns Promise<any>

      An LCEL Runnable chain. Expects a dictionary as input with a list of Documents being passed under the "context" key. Return type depends on the output_parser used.