类 DefaultQueryRouter
java.lang.Object
dev.langchain4j.rag.query.router.DefaultQueryRouter
- 所有已实现的接口:
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.- 另请参阅:
-
构造器概要
构造器构造器说明DefaultQueryRouter(ContentRetriever... contentRetrievers) DefaultQueryRouter(Collection<ContentRetriever> contentRetrievers) -
方法概要
-
构造器详细资料
-
DefaultQueryRouter
-
DefaultQueryRouter
-
-
方法详细资料
-
route
从接口复制的说明:QueryRouterRoutes the givenQueryto one or multipleContentRetrievers.- 指定者:
route在接口中QueryRouter- 参数:
query- TheQueryto be routed.- 返回:
- A collection of one or more
ContentRetrievers to which theQueryshould be routed.
-