MCPcopy Create free account
hub / github.com/ZenSystemAI/Zengram / embeddingsReady

Function embeddingsReady

api/src/index.js:111–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109// getEmbeddingDimensions() throws until initEmbeddings() has completed — a clean
110// "is the provider up?" flag without adding an export to the embedder interface.
111function embeddingsReady() {
112 try {
113 return getEmbeddingDimensions() > 0;
114 } catch {
115 return false;
116 }
117}
118
119// Deep health check (no auth) — probes real dependencies so a downed Postgres or
120// an uninitialized embedder returns 503, not a misleading 200.

Callers 1

index.jsFile · 0.85

Calls 1

getEmbeddingDimensionsFunction · 0.90

Tested by

no test coverage detected