QueryFilterService

gitinsp.infrastructure.QueryFilterService

Implementation of the QueryFilterService that uses the Strategy pattern to determine which filter to apply to a query.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

override def applyDynamicFilter(query: Query, config: Config, modelRouter: OllamaChatModel): Filter

Applies a dynamic filter to a query based on the content of the query and configuration settings

Applies a dynamic filter to a query based on the content of the query and configuration settings

Value parameters

config

Configuration containing filter settings and strategies

modelRouter

The AI model used to understand query intent for filtering

query

The user query to analyze for filtering

Attributes

Returns

A Filter object that can be applied to vector store searches, or null if no filtering should be applied

Definition Classes