Uses of Class
dev.langchain4j.rag.query.router.DecisionModelQueryRouter.Builder
Packages that use DecisionModelQueryRouter.Builder
-
Uses of DecisionModelQueryRouter.Builder in dev.langchain4j.rag.query.router
Methods in dev.langchain4j.rag.query.router that return DecisionModelQueryRouter.BuilderModifier and TypeMethodDescriptionDecisionModelQueryRouter.builder()DecisionModelQueryRouter.Builder.decisionModel(DecisionModel decisionModel) Sets the decision model that decides which retrievers to use.DecisionModelQueryRouter.Builder.fallbackStrategy(DecisionModelQueryRouter.FallbackStrategy fallbackStrategy) Sets what happens when the decision model fails.DecisionModelQueryRouter.Builder.maxMessages(Integer maxMessages) Sets how many of the last messages of the conversation are taken into account, including the query itself: the previous messages (user messages and text responses of the AI) are sent together with the query, so that follow-up questions are understood.DecisionModelQueryRouter.Builder.minProbability(Double minProbability) Sets the minimum probability of "yes" for a retriever to be used.DecisionModelQueryRouter.Builder.questionTemplate(PromptTemplate questionTemplate) Sets the template of the yes/no question asked for each retriever, which must contain the{{description}}variable (the description of the retriever).DecisionModelQueryRouter.Builder.retrieverToDescription(Map<ContentRetriever, String> retrieverToDescription) Sets the retrievers to route to, each with a description of the content it can retrieve.Constructors in dev.langchain4j.rag.query.router with parameters of type DecisionModelQueryRouter.BuilderModifierConstructorDescriptionprotected