Default Embedding Model Constants (ai/defaults.ts)

mperkins0155/gbrain ยท ai, AI / Agents, defaults, embedding, model, configuration, constants

Single source of truth for default embedding and reranker model identifiers and dimensions used by schema and registry helpers.

// Source: https://github.com/mperkins0155/gbrain | License: MIT | Copyright 2026 Garry Tan
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Leaf module holding the default embedding model + dimensions.
 *
 * Extracted so schema helpers (pglite-schema.ts, postgres-engine.ts) +
 * registry helpers (search/embedding-column.ts) can import the constants
 * without pulling the full AI gateway (which loads every provider SDK).
 *
 * gateway.ts re-exports these so existing import sites keep working.
 *
 * Single source of truth for "what does a fresh brain look like when the
 * user passes zero flags?" Touching these defaults touches every fresh
 * install AND every doctor consistency check.
 */

// LEGACY CONFIGLESS RUNTIME FALLBACK โ€” not the new-install default anymore.
/

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key