Skip to main content

EmbeddingModelRef

@forge/monorepo


@forge/monorepo / backend/src / EmbeddingModelRef

Type Alias: EmbeddingModelRef

EmbeddingModelRef = object

Defined in: backend/src/persistence/index.ts:1363

Which embedding produced a vector.

Recorded per chunk, not per deployment. A model change must be detectable — and it is detectable only if an old chunk still says what produced it. A single global "current model" setting cannot tell you which rows are stale, which makes incremental re-indexing impossible.

Properties

dimensions

readonly dimensions: number

Defined in: backend/src/persistence/index.ts:1367


modelId

readonly modelId: string

Defined in: backend/src/persistence/index.ts:1364


version

readonly version: string

Defined in: backend/src/persistence/index.ts:1366

Bumped when the same model id starts producing different vectors. Providers do this silently.