langchain.js
    Preparing search index...

    Params for the createHistoryAwareRetriever method.

    type CreateHistoryAwareRetrieverParams = {
        llm: BaseMessage;
        rephrasePrompt: BaseMessage;
        retriever: BaseMessage<string, BaseMessage[]>;
    }
    Index

    Properties

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

    rephrasePrompt: BaseMessage

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

    retriever: BaseMessage<string, BaseMessage[]>

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