Package dev.langchain4j.rag.query.router
Class LanguageModelQueryRouter.LanguageModelQueryRouterBuilder
java.lang.Object
dev.langchain4j.rag.query.router.LanguageModelQueryRouter.LanguageModelQueryRouterBuilder
- Enclosing class:
LanguageModelQueryRouter
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
chatLanguageModel
(ChatLanguageModel chatLanguageModel) fallbackStrategy
(LanguageModelQueryRouter.FallbackStrategy fallbackStrategy) promptTemplate
(PromptTemplate promptTemplate) retrieverToDescription
(Map<ContentRetriever, String> retrieverToDescription) toString()
-
Method Details
-
chatLanguageModel
public LanguageModelQueryRouter.LanguageModelQueryRouterBuilder chatLanguageModel(ChatLanguageModel chatLanguageModel) -
retrieverToDescription
public LanguageModelQueryRouter.LanguageModelQueryRouterBuilder retrieverToDescription(Map<ContentRetriever, String> retrieverToDescription) -
promptTemplate
public LanguageModelQueryRouter.LanguageModelQueryRouterBuilder promptTemplate(PromptTemplate promptTemplate) -
fallbackStrategy
public LanguageModelQueryRouter.LanguageModelQueryRouterBuilder fallbackStrategy(LanguageModelQueryRouter.FallbackStrategy fallbackStrategy) -
build
-
toString
-