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.maxMessageLength(Integer maxMessageLength) Sets the maximum length, in characters, of the text of each message the decision model receives, other than system messages, and of the arguments of each tool call.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 (plus the previous user message, if it is older) are sent together with the query, so that follow-up questions are understood.DecisionModelQueryRouter.Builder.messageFilter(Predicate<? super ChatMessage> messageFilter) Sets which messages of the conversation the decision model receives; it also applies to the last user message.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