Class DefaultQueryRouter
java.lang.Object
dev.langchain4j.rag.query.router.DefaultQueryRouter
- All Implemented Interfaces:
- QueryRouter
Default implementation of 
It's important to note that while efforts will be made to avoid breaking changes, the default behavior of this class may be updated in the future if it's found that the current behavior does not adequately serve the majority of use cases. Such changes would be made to benefit both current and future users.
This implementation always routes all
QueryRouter intended to be suitable for the majority of use cases.
It's important to note that while efforts will be made to avoid breaking changes, the default behavior of this class may be updated in the future if it's found that the current behavior does not adequately serve the majority of use cases. Such changes would be made to benefit both current and future users.
This implementation always routes all
Querys
to one or multiple ContentRetrievers provided in the constructor.- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultQueryRouter(ContentRetriever... contentRetrievers) DefaultQueryRouter(Collection<ContentRetriever> contentRetrievers) 
- 
Method Summary
- 
Constructor Details- 
DefaultQueryRouter
- 
DefaultQueryRouter
 
- 
- 
Method Details- 
routeDescription copied from interface:QueryRouterRoutes the givenQueryto one or multipleContentRetrievers.- Specified by:
- routein interface- QueryRouter
- Parameters:
- query- The- Queryto be routed.
- Returns:
- A collection of one or more ContentRetrievers to which theQueryshould be routed.
 
 
-