/** * ADR-472: a stored embedding as int8 + scale, for `memory list --embeddings`. Pure; no store access. */ /** Most embeddings `memory list --embeddings` will emit per call, and the longest vector it will encode. */ export declare const MAX_LIST_EMBEDDINGS = 500; export declare const MAX_EMBEDDING_DIMS = 4096; /** A stored embedding as int8 with one scale, base64: ~1/4 the bytes of rounded JSON floats, enough for a 2D projection or a cosine screen. */ export type EmbeddingQ8 = { dims: number; scale: number; b64: string; }; /** * Read-only view of a stored embedding (a JSON array in the `embedding` column) as int8 + scale. Returns undefined for a missing, * malformed, non-finite, constant-zero or over-long vector, so a caller never gets a guessed one. Each value is within scale/2 of the * original (scale = max|v| / 127); cosine against the original stays above 0.9999 for unit-scale text embeddings. */ export declare function encodeEmbeddingQ8(stored: unknown): EmbeddingQ8 | undefined; //# sourceMappingURL=embedding-q8.d.ts.map