integrate llm post-processing phase into pipeline

This commit is contained in:
leonardotrapani
2026-01-31 20:43:49 +01:00
parent bb8effc69f
commit e175f4f6f2
3 changed files with 50 additions and 2 deletions
+14
View File
@@ -64,3 +64,17 @@ Key decisions:
- System prompt builds dynamically based on enabled options
- Keywords included in system prompt for correct spelling hints
- Custom prompt prepended to user prompt if enabled
## Task 4: Integrate LLM phase into pipeline - COMPLETE
Updated internal/pipeline/pipeline.go:
- Added `Processing` status for LLM post-processing phase
- After transcription, checks `config.IsLLMEnabled()` before LLM processing
- Creates LLM adapter using config.ToLLMConfig()
- Processes text with adapter, uses result for injection
- Graceful fallback: logs warning and uses raw transcription text on any error
Key decisions:
- LLM processing happens between transcription and injection
- Adapter creation and processing errors are logged but don't fail the pipeline
- Sets status to Processing during LLM phase, then back to Injecting