Manager orchestrates RAG operations using pluggable strategies Supports both single-strategy and hybrid multi-strategy retrieval with fusion
| 62 | // Manager orchestrates RAG operations using pluggable strategies |
| 63 | // Supports both single-strategy and hybrid multi-strategy retrieval with fusion |
| 64 | type Manager struct { |
| 65 | name string |
| 66 | config Config |
| 67 | strategies map[string]strategy.Strategy // Map of strategy name -> strategy instance |
| 68 | strategyConfigs map[string]strategy.Config // Store configs for per-strategy operations |
| 69 | fusion fusion.Fusion // Fusion strategy for combining multi-strategy results |
| 70 | reranker rerank.Reranker // Optional reranker for result re-scoring |
| 71 | rerankDisabled atomic.Bool // Set after a non-retryable reranking error to stop doomed requests |
| 72 | events <-chan types.Event // Shared event channel from strategies and other RAG operations |
| 73 | } |
| 74 | |
| 75 | // FusionConfig holds configuration for result fusion |
| 76 | type FusionConfig struct { |
nothing calls this directly
no outgoing calls
no test coverage detected