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

    Parameters

    • __namedParameters: {
          llm: LanguageModelLike;
          prompt: BasePromptTemplate<any, BasePromptValueInterface, any>;
          documentPrompt?: BasePromptTemplate<any, BasePromptValueInterface, any>;
          documentSeparator?: string;
          outputParser?: BaseOutputParser<unknown>;
      }

    Returns Promise<RunnableSequence<Record<string, unknown>, unknown>>

    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.

Generated using TypeDoc