hydeAugmenterFor resolves the per-call HyDE augmenter: it lazily attaches the vector index when needed and returns the augmenter, or nil when HyDE is disabled (or no LLM client is wired). This is the single setup seam every retrieval path shares — chat, agent/coder, and the @memory recall tool. Onl
(qcfg quality.Config)
| 165 | // treat a nil augmenter as the non-HyDE path, so callers can pass the result |
| 166 | // straight through. |
| 167 | func (cli *ChatCLI) hydeAugmenterFor(qcfg quality.Config) *memory.HyDEAugmenter { |
| 168 | if !qcfg.Enabled || !qcfg.HyDE.Enabled { |
| 169 | return nil |
| 170 | } |
| 171 | cli.ensureHyDEVectors(qcfg) |
| 172 | return cli.hydeAugmenter(qcfg) |
| 173 | } |