RouterWithStrategy
gitinsp.infrastructure.factories.RouterWithStrategy
class RouterWithStrategy(strategy: QueryRoutingStrategy, retrievers: List[EmbeddingStoreContentRetriever]) extends QueryRouter
A custom router that uses a query routing strategy. This is an adapter that bridges the gap between the QueryRouter interface and the QueryRoutingStrategy.
Value parameters
- retrievers
-
The list of content retrievers
- strategy
-
The query routing strategy
Attributes
- Graph
-
- Supertypes
-
trait QueryRouterclass Objecttrait Matchableclass Any
Members list
In this article