LLMClassificationFilterStrategy

gitinsp.infrastructure.strategies.LLMClassificationFilterStrategy

A filter strategy that uses an LLM to classify the query and determine which programming language is being requested, then filters results accordingly.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def createFilter(query: Query, modelRouter: OllamaChatModel): Option[Filter]

Creates a filter based on the given query

Creates a filter based on the given query

Value parameters

modelRouter

The chat model to use for classification

query

The user query

Attributes

Returns

Optional filter to apply to the query

Definition Classes