fix(enrich): set Temperature=0.1 on enrich_b and similarity call sites

Deterministic output is preferable for extraction and classification
tasks. Temperature=0.1 also enables the if-gate in gemini.go that
forwards the value to the Gemini API config.

Also add llm_enricher.go (renamed from mistral.go) with the temperature
field applied.
This commit is contained in:
2026-04-25 17:39:13 +02:00
parent 87e2f06323
commit a6298d2be2
2 changed files with 2 additions and 0 deletions

View File

@@ -91,6 +91,7 @@ func (e *ProviderLLMEnricher) EnrichMissing(ctx context.Context, req LLMRequest)
JSONMode: true,
Grounded: true,
CallType: "enrich_b",
Temperature: 0.1,
})
if err != nil {
return Enrichment{}, fmt.Errorf("chat: %w", err)

View File

@@ -119,6 +119,7 @@ func (c *SimilarityClassifierLLM) Classify(ctx context.Context, a, b SimilarityR
JSONMode: true,
Grounded: false,
CallType: "similarity",
Temperature: 0.1,
})
if err != nil {
return Verdict{}, fmt.Errorf("chat: %w", err)