public class DefaultQueryRouter extends Object implements QueryRouter
QueryRouter
intended to be suitable for the majority of use cases.
Query
s
to one or multiple ContentRetriever
s provided in the constructor.LanguageModelQueryRouter
Constructor and Description |
---|
DefaultQueryRouter(Collection<ContentRetriever> contentRetrievers) |
DefaultQueryRouter(ContentRetriever... contentRetrievers) |
Modifier and Type | Method and Description |
---|---|
Collection<ContentRetriever> |
route(Query query)
Routes the given
Query to one or multiple ContentRetriever s. |
public DefaultQueryRouter(ContentRetriever... contentRetrievers)
public DefaultQueryRouter(Collection<ContentRetriever> contentRetrievers)
public Collection<ContentRetriever> route(Query query)
QueryRouter
Query
to one or multiple ContentRetriever
s.route
in interface QueryRouter
query
- The Query
to be routed.ContentRetriever
s to which the Query
should be routed.Copyright © 2024. All rights reserved.