• Create a chain that passes a list of documents to a model.

    Type Parameters

    • RunOutput = string

    Parameters

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

    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.