assertEvalAdapterConfig (runner/eval-adapter-config.ts)

gbrain-evals · eval/runner/eval-adapter-config.ts · typescript · MIT
ai, tag:embed-classified

Validates EvalAdapterConfig objects for adapter initialization.

// Source: https://github.com/garrytan/gbrain-evals | License: MIT | Copyright 2026 Garry Tan
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Embedder-shootout adapter config (v0.35.1.0+).
 *
 * Typed sidecar for `AdapterConfig` so the vector + hybrid adapters can
 * be re-targeted per matrix cell without parsing env-var strings inside
 * each adapter. Constructed by the matrix runner and passed in via
 * `AdapterConfig.shootout`.
 *
 * Current cells use OpenAI 1536d and Voyage 2048d, without reranking or
 * with voyage:rerank-2.5. Reranked cells carry the model in their names
 * so historical results cannot be reused for the new configurations.
 *
 * Adapters read this and call `gbrain/ai/gateway`'s `configureGateway()`
 * at the top of `init()` so every `embed*` +

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

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

Get a free API key