public interface QueryRouter
Query
to one or multiple ContentRetriever
s.
Content
is retrieved only from relevant data sources.
- Utilizing a Large Language Model (LLM) (seeLanguageModelQueryRouter
) - Employing aTextClassifier
(aka "semantic routing")
DefaultQueryRouter
,
LanguageModelQueryRouter
Modifier and Type | Method and Description |
---|---|
Collection<ContentRetriever> |
route(Query query)
Routes the given
Query to one or multiple ContentRetriever s. |
Collection<ContentRetriever> route(Query query)
Query
to one or multiple ContentRetriever
s.query
- The Query
to be routed.ContentRetriever
s to which the Query
should be routed.Copyright © 2024. All rights reserved.