CreateHistoryAwareRetrieverParams: {
    llm: Toolkit;
    rephrasePrompt: Toolkit;
    retriever: Toolkit<string, Toolkit[]>;
}

Params for the createHistoryAwareRetriever method.

Type declaration

  • llm: Toolkit

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

  • rephrasePrompt: Toolkit

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

  • retriever: Toolkit<string, Toolkit[]>

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

""