MCPcopy Create free account
hub / github.com/diillson/chatcli / hydeAugmenterFor

Method hydeAugmenterFor

cli/hyde_setup.go:167–173  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

165// treat a nil augmenter as the non-HyDE path, so callers can pass the result
166// straight through.
167func (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}

Callers 4

TestHydeAugmenterForFunction · 0.95
RecallMethod · 0.80
buildWorkspaceBlocksMethod · 0.80

Calls 2

ensureHyDEVectorsMethod · 0.95
hydeAugmenterMethod · 0.95

Tested by 1

TestHydeAugmenterForFunction · 0.76