CreateHistoryAwareRetrieverParams: {
    llm: LanguageModelLike;
    rephrasePrompt: BasePromptTemplate;
    retriever: RunnableInterface<string, DocumentInterface[]>;
}

Params for the createHistoryAwareRetriever method.

Type declaration

  • llm: LanguageModelLike

    Language model to use for generating a search term given chat history.

  • rephrasePrompt: BasePromptTemplate

    The prompt used to generate the search query for the retriever.

  • retriever: RunnableInterface<string, DocumentInterface[]>

    RetrieverLike object that takes a string as input and outputs a list of Documents.

Generated using TypeDoc