Package dev.langchain4j.rag.query.router
package dev.langchain4j.rag.query.router
-
ClassDescriptionDefault implementation of
QueryRouterintended 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.