Package dev.langchain4j.chain
Class ConversationalRetrievalChain.Builder
java.lang.Object
dev.langchain4j.chain.ConversationalRetrievalChain.Builder
- Enclosing class:
ConversationalRetrievalChain
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
chatLanguageModel
(ChatLanguageModel chatLanguageModel) chatMemory
(ChatMemory chatMemory) contentRetriever
(ContentRetriever contentRetriever) promptTemplate
(PromptTemplate promptTemplate) Deprecated.retrievalAugmentor
(RetrievalAugmentor retrievalAugmentor) retriever
(Retriever<TextSegment> retriever) Deprecated.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
chatLanguageModel
-
chatMemory
-
contentRetriever
-
retrievalAugmentor
public ConversationalRetrievalChain.Builder retrievalAugmentor(RetrievalAugmentor retrievalAugmentor) -
retriever
Deprecated.Deprecated. UsecontentRetriever(ContentRetriever)
instead. -
promptTemplate
@Deprecated public ConversationalRetrievalChain.Builder promptTemplate(PromptTemplate promptTemplate) Deprecated.Deprecated, Use this instead:.retrievalAugmentor(DefaultRetrievalAugmentor.builder() .contentInjector(DefaultContentInjector.builder() .promptTemplate(promptTemplate) .build()) .build());
-
build
-