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

Function IsNull

llm/embedding/factory.go:78–84  ·  view source on GitHub ↗

IsNull reports whether p is the null no-op provider. Used by callers (HyDE, vector store) to decide whether to take the keyword-only fast path without calling Embed and getting an error back.

(p Provider)

Source from the content-addressed store, hash-verified

76// (HyDE, vector store) to decide whether to take the keyword-only fast
77// path without calling Embed and getting an error back.
78func IsNull(p Provider) bool {
79 if p == nil {
80 return true
81 }
82 _, ok := p.(*Null)
83 return ok
84}

Callers 12

NewFunction · 0.92
EnabledMethod · 0.92
embeddingProviderLabelFunction · 0.92
ensureHyDEVectorsMethod · 0.92
EnabledMethod · 0.92
TestNewByName_BedrockFunction · 0.70
TestIsNullFunction · 0.70

Calls

no outgoing calls