Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config = internalenricher.Config
Config configures an LLMEnricher: Model, QuestionsPerChunk, MaxConcurrency, and Timeout.
type LLMCaller ¶
type LLMCaller = internalenricher.LLMCaller
LLMCaller is the minimal interface LLMEnricher needs to call the provider API - normally satisfied by *providers.Client, but defined as an interface so a caller can supply anything with a matching CreateMessage method (or a fake, for tests).
type LLMEnricher ¶
type LLMEnricher = internalenricher.LLMEnricher
LLMEnricher generates synthetic questions per chunk via an LLM - see internal/rag/enricher's package doc for the rationale and internal/rag.Enricher for the interface it implements.
func New ¶
func New(caller LLMCaller, cfg Config) *LLMEnricher
New creates an LLMEnricher. caller is normally the same *providers.Client already used elsewhere for chat completions.