QueryRoutingStrategy

gitinsp.domain.interfaces.infrastructure.QueryRoutingStrategy

Strategy interface for determining which retrievers to use for a given query. Enables different routing strategies to be implemented and swapped at runtime.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def determineRetrievers(query: Query, retrievers: List[EmbeddingStoreContentRetriever]): Collection[ContentRetriever]

Determines which retrievers to use for a given query

Determines which retrievers to use for a given query

Value parameters

query

The user query

retrievers

List of available retrievers

Attributes

Returns

Collection of content retrievers to use