接口 QueryRouter
- 所有已知实现类:
DefaultQueryRouter,LanguageModelQueryRouter
public interface QueryRouter
Routes the given
The goal is to ensure that
Some potential approaches include:
Query to one or multiple ContentRetrievers.
The goal is to ensure that
Content is retrieved only from relevant data sources.
Some potential approaches include:
- Utilizing a Large Language Model (LLM) (seeLanguageModelQueryRouter) - Employing aTextClassifier(aka "semantic routing")
-
方法概要
-
方法详细资料
-
route
Routes the givenQueryto one or multipleContentRetrievers.- 参数:
query- TheQueryto be routed.- 返回:
- A collection of one or more
ContentRetrievers to which theQueryshould be routed.
-