Skip to main content

Vector embeddings

Cortex creates embeddings in the backend under embedding.memory and embedding.query policy. Applications read the active managed profile instead of constructing their own vectors for runtime turns.

Profile provenance​

A profile identifies model, dimensions, normalization, chunking and index name. The default profile uses openai/text-embedding-3-small with 1536 dimensions; a supported large profile uses openai/text-embedding-3-large with 3072 dimensions. The installed administrator-selected profile is authoritative; do not assume the default when reading an existing deployment.

import type { CortexRuntimeClient } from '@cortexmemory/sdk/runtime';

export async function readProfile(client: CortexRuntimeClient, expectedProfileId?: string) {
return client.getEmbeddingProfile({ operationKey: 'embedding.query', expectedProfileId });
}

expectedProfileId refuses mismatch. It does not request a new profile or perform migration. Query and memory policies must resolve compatible profile/index provenance.

Sources are normalized and chunked canonically; each generation retains the current source revision/hash and profile ID. Stale, unauthorized or mismatched generations cannot enter retrieval. Vector watermarks advance contiguously, including failure holes.

Use governed recall for application retrieval and stage barriers for consistency. Separate explicit-memory APIs may accept vectors under their own contracts, but do not duplicate the runtime memory pipeline.