Package dev.langchain4j.rag.query.router
Class LanguageModelQueryRouter.LanguageModelQueryRouterBuilder
-
- All Implemented Interfaces:
public class LanguageModelQueryRouter.LanguageModelQueryRouterBuilder
-
-
Method Summary
Modifier and Type Method Description LanguageModelQueryRouter.LanguageModelQueryRouterBuilder
chatLanguageModel(ChatLanguageModel chatLanguageModel)
LanguageModelQueryRouter.LanguageModelQueryRouterBuilder
retrieverToDescription(Map<ContentRetriever, String> retrieverToDescription)
LanguageModelQueryRouter.LanguageModelQueryRouterBuilder
promptTemplate(PromptTemplate promptTemplate)
LanguageModelQueryRouter.LanguageModelQueryRouterBuilder
fallbackStrategy(LanguageModelQueryRouter.FallbackStrategy fallbackStrategy)
LanguageModelQueryRouter
build()
String
toString()
-
-
Method Detail
-
chatLanguageModel
LanguageModelQueryRouter.LanguageModelQueryRouterBuilder chatLanguageModel(ChatLanguageModel chatLanguageModel)
-
retrieverToDescription
LanguageModelQueryRouter.LanguageModelQueryRouterBuilder retrieverToDescription(Map<ContentRetriever, String> retrieverToDescription)
-
promptTemplate
LanguageModelQueryRouter.LanguageModelQueryRouterBuilder promptTemplate(PromptTemplate promptTemplate)
-
fallbackStrategy
LanguageModelQueryRouter.LanguageModelQueryRouterBuilder fallbackStrategy(LanguageModelQueryRouter.FallbackStrategy fallbackStrategy)
-
build
LanguageModelQueryRouter build()
-
-
-
-