Package dev.langchain4j.rag.query.router
package dev.langchain4j.rag.query.router
-
ClassDescriptionDefault implementation of
QueryRouter
intended to be suitable for the majority of use cases.AQueryRouter
that utilizes aChatLanguageModel
to make a routing decision.Strategy applied if the call to the LLM fails of if LLM does not return a valid response.Routes the givenQuery
to one or multipleContentRetriever
s.