Package dev.langchain4j.rag.query.router
package dev.langchain4j.rag.query.router
-
ClassDescriptionA
QueryRouterthat uses aDecisionModelto decide whichContentRetrievers can help answer the query.What the router does when the decision model fails.Default implementation ofQueryRouterintended to be suitable for the majority of use cases.AQueryRouterthat utilizes aChatModelto make a routing decision.Strategy applied if the call to the LLM fails of if LLM does not return a valid response.Routes the givenQueryto one or multipleContentRetrievers.